From 0a6f92243d85496429197716cd4bd6e9e058a466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Kubitz?= Date: Thu, 2 Nov 2023 13:30:42 +0100 Subject: [PATCH] fix javadoc @return --- .../gtk/org/eclipse/swt/widgets/FileDialog.java | 2 +- .../org/eclipse/swt/examples/launcher/ItemDescriptor.java | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java index ab124f75641..ef7f487dca3 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/FileDialog.java @@ -565,7 +565,7 @@ void presetChooserDialog () { * * @param extension file extension as a string * - * @returns true if the extension contains any of the glob pattern wildcards + * @return true if the extension contains any of the glob pattern wildcards */ private boolean isGlobPattern (String extension) { if (extension.contains ("*") || diff --git a/examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/ItemDescriptor.java b/examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/ItemDescriptor.java index adf5a9d7db9..bed471e6329 100644 --- a/examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/ItemDescriptor.java +++ b/examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/ItemDescriptor.java @@ -14,8 +14,9 @@ package org.eclipse.swt.examples.launcher; -import org.eclipse.core.runtime.*; -import org.eclipse.swt.graphics.*; +import org.eclipse.core.runtime.CoreException; +import org.eclipse.core.runtime.IConfigurationElement; +import org.eclipse.swt.graphics.Image; /** * ItemDescriptor collects information about a launch item. @@ -95,7 +96,7 @@ public String getDescription() { /** * Returns an icon for this descriptor * - * @returns an icon, null if the item is a folder + * @return an icon, null if the item is a folder */ public Image getIcon() { return icon;