From 17dd4bc3187ea46fb0ab6fa9a447ac44085155b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Kubitz?= Date: Tue, 7 Nov 2023 14:23:49 +0100 Subject: [PATCH] Remove blank Javadoc This commit cleans up Javadoc that does not add information. It resolves ecj warnings: `Javadoc: Description expected after ...` It helps to prevent future empty javadoc by disabling missingJavaDoc warnings. This resolves `Javadoc: Missing ...` The modification is a result of regular expression search&replace: in files `*.java` `^[\s]*\*[\s]*(@return|@param[\s]*[^\s]+|@throws[\s]*[^\s]+)\R([\s]*\*[\s]*@|[\s]*\*/\R)` ->`$2` `^([\s]*\*[\s]*\R)([\s]*\*/\R)` ->`$2` `^[\S\t ]*/\*\*\R[\s]*\*/\R` ->`` in files `org.eclipse.jdt.core.prefs` `org\.eclipse\.jdt\.core\.compiler\.problem\.missingJavadoc(Comments|Tags)\=[^\s]*` ->`org\.eclipse\.jdt\.core\.compiler\.problem\.missingJavadoc$1\=ignore` --- .../src/org/eclipse/swt/tools/internal/Sleak.java | 1 - .../swt/tools/internal/SpiesConstants.java | 1 - .../org/eclipse/swt/tools/internal/IconExe.java | 1 - .../common/org/eclipse/swt/custom/CBanner.java | 1 - .../common/org/eclipse/swt/custom/CTabFolder.java | 2 -- .../eclipse/swt/custom/CTabFolderRenderer.java | 7 ------- .../org/eclipse/swt/custom/ControlEditor.java | 1 - .../common/org/eclipse/swt/custom/StyledText.java | 6 ------ .../org/eclipse/swt/custom/StyledTextEvent.java | 3 --- .../eclipse/swt/custom/StyledTextListener.java | 2 -- .../org/eclipse/swt/custom/TableCursor.java | 3 --- .../org/eclipse/swt/custom/TableEditor.java | 1 - .../common/org/eclipse/swt/custom/TreeEditor.java | 1 - .../org/eclipse/swt/dnd/DragSourceListener.java | 1 - .../org/eclipse/swt/dnd/DropTargetListener.java | 1 - .../internal/dnd/gtk/ListDragSourceEffect.java | 1 - .../win32/org/eclipse/swt/ole/win32/OLE.java | 1 - .../org/eclipse/swt/ole/win32/OleClientSite.java | 1 - .../org/eclipse/swt/ole/win32/OleEventTable.java | 1 - .../win32/org/eclipse/swt/ole/win32/OleFrame.java | 4 ---- .../win32/org/eclipse/swt/ole/win32/Variant.java | 12 ------------ .../common/org/eclipse/swt/internal/Library.java | 5 ----- .../gtk/org/eclipse/swt/internal/gtk/GTK.java | 2 -- .../org/eclipse/swt/graphics/ImageLoader.java | 1 - .../cocoa/org/eclipse/swt/graphics/Region.java | 1 - .../eclipse/swt/internal/graphics/ImageUtil.java | 1 - .../cocoa/org/eclipse/swt/widgets/Display.java | 1 - .../cocoa/org/eclipse/swt/widgets/Shell.java | 1 - .../cocoa/org/eclipse/swt/widgets/TabItem.java | 1 - .../org/eclipse/swt/widgets/TableColumn.java | 1 - .../cocoa/org/eclipse/swt/widgets/TaskItem.java | 1 - .../cocoa/org/eclipse/swt/widgets/TreeColumn.java | 1 - .../cocoa/org/eclipse/swt/widgets/TreeItem.java | 6 ------ .../common/org/eclipse/swt/SwtRunnable.java | 1 - .../common/org/eclipse/swt/graphics/RGBA.java | 1 - .../eclipse/swt/internal/image/FileFormat.java | 1 - .../org/eclipse/swt/layout/BorderLayout.java | 5 ----- .../common/org/eclipse/swt/widgets/Monitor.java | 1 - .../bidi/org/eclipse/swt/internal/BidiUtil.java | 4 ---- .../taskbar/org/eclipse/swt/widgets/TaskItem.java | 1 - .../tooltip/org/eclipse/swt/widgets/ToolTip.java | 1 - .../gtk/org/eclipse/swt/graphics/ImageLoader.java | 7 ------- .../gtk/org/eclipse/swt/graphics/Region.java | 1 - .../gtk/org/eclipse/swt/internal/GDBus.java | 2 -- .../gtk/org/eclipse/swt/widgets/Control.java | 1 - .../gtk/org/eclipse/swt/widgets/DateTime.java | 15 --------------- .../gtk/org/eclipse/swt/widgets/Display.java | 1 - .../gtk/org/eclipse/swt/widgets/Shell.java | 1 - .../gtk/org/eclipse/swt/widgets/TabItem.java | 1 - .../gtk/org/eclipse/swt/widgets/TableColumn.java | 1 - .../gtk/org/eclipse/swt/widgets/Text.java | 1 - .../gtk/org/eclipse/swt/widgets/ToolTip.java | 1 - .../gtk/org/eclipse/swt/widgets/Tracker.java | 2 -- .../gtk/org/eclipse/swt/widgets/TreeColumn.java | 1 - .../gtk/org/eclipse/swt/widgets/TreeItem.java | 6 ------ .../gtk/org/eclipse/swt/widgets/Widget.java | 3 --- .../win32/org/eclipse/swt/graphics/GC.java | 1 - .../org/eclipse/swt/graphics/ImageLoader.java | 1 - .../win32/org/eclipse/swt/graphics/Region.java | 1 - .../win32/org/eclipse/swt/widgets/Display.java | 1 - .../win32/org/eclipse/swt/widgets/Shell.java | 2 -- .../win32/org/eclipse/swt/widgets/TabItem.java | 1 - .../win32/org/eclipse/swt/widgets/Table.java | 1 - .../org/eclipse/swt/widgets/TableColumn.java | 1 - .../win32/org/eclipse/swt/widgets/TaskItem.java | 1 - .../win32/org/eclipse/swt/widgets/ToolTip.java | 1 - .../win32/org/eclipse/swt/widgets/TreeColumn.java | 1 - .../win32/org/eclipse/swt/widgets/TreeItem.java | 6 ------ .../swt/examples/accessibility/CTableColumn.java | 1 - .../swt/examples/controlexample/CanvasTab.java | 4 ---- .../swt/examples/graphics/GradientDialog.java | 2 -- .../swt/examples/graphics/GraphicsExample.java | 1 - .../src/org/eclipse/swt/snippets/Snippet174.java | 1 - .../src/org/eclipse/swt/snippets/Snippet325.java | 1 - .../src/org/eclipse/swt/snippets/Snippet328.java | 1 - .../src/org/eclipse/swt/snippets/Snippet380.java | 1 - .../Test_org_eclipse_swt_graphics_ImageData.java | 10 ---------- .../Test_org_eclipse_swt_layout_BorderLayout.java | 1 - .../Test_org_eclipse_swt_widgets_Widget.java | 1 - .../performance/BenchmarkSwtMultithreading.java | 1 - 80 files changed, 176 deletions(-) diff --git a/bundles/org.eclipse.swt.tools.spies/src/org/eclipse/swt/tools/internal/Sleak.java b/bundles/org.eclipse.swt.tools.spies/src/org/eclipse/swt/tools/internal/Sleak.java index 8d9655d8778..c4127aa2318 100644 --- a/bundles/org.eclipse.swt.tools.spies/src/org/eclipse/swt/tools/internal/Sleak.java +++ b/bundles/org.eclipse.swt.tools.spies/src/org/eclipse/swt/tools/internal/Sleak.java @@ -31,7 +31,6 @@ * * Modify the main method below to launch your application. * Run Sleak. - * */ public class Sleak { List list; diff --git a/bundles/org.eclipse.swt.tools.spies/src/org/eclipse/swt/tools/internal/SpiesConstants.java b/bundles/org.eclipse.swt.tools.spies/src/org/eclipse/swt/tools/internal/SpiesConstants.java index 17839ee9557..3f8698604b1 100644 --- a/bundles/org.eclipse.swt.tools.spies/src/org/eclipse/swt/tools/internal/SpiesConstants.java +++ b/bundles/org.eclipse.swt.tools.spies/src/org/eclipse/swt/tools/internal/SpiesConstants.java @@ -13,7 +13,6 @@ /** * Interface containing constants for the Spies plug-in. - * */ public interface SpiesConstants { diff --git a/bundles/org.eclipse.swt.tools/Icon Exe/org/eclipse/swt/tools/internal/IconExe.java b/bundles/org.eclipse.swt.tools/Icon Exe/org/eclipse/swt/tools/internal/IconExe.java index aeb0f9dfe60..ddd862db7ae 100644 --- a/bundles/org.eclipse.swt.tools/Icon Exe/org/eclipse/swt/tools/internal/IconExe.java +++ b/bundles/org.eclipse.swt.tools/Icon Exe/org/eclipse/swt/tools/internal/IconExe.java @@ -1101,7 +1101,6 @@ static class ImageLoader { * the background pixel for the logical screen (this * corresponds to the GIF89a Background Color Index value). * The default is -1 which means 'unspecified background' - * */ public int backgroundPixel; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CBanner.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CBanner.java index 847bdee2796..eca34eb561c 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CBanner.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CBanner.java @@ -100,7 +100,6 @@ public class CBanner extends Composite { * @exception SWTException - * */ public CBanner(Composite parent, int style) { super(parent, checkStyle(style)); diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java index ef2683c7bd6..ede046a4a1b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolder.java @@ -872,7 +872,6 @@ ToolBar getChevron() { *
  • ERROR_WIDGET_DISPOSED - if the receiver has been disposed
  • *
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
  • * - * */ /*public*/ boolean getChevronVisible() { checkWidget(); @@ -4176,7 +4175,6 @@ int getWrappedHeight (Point size) { *
  • ERROR_THREAD_INVALID_ACCESS when called from the wrong thread
  • *
  • ERROR_WIDGET_DISPOSED when the widget has been disposed
  • * - * */ /*public*/ void setChevronVisible(boolean visible) { checkWidget(); diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolderRenderer.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolderRenderer.java index 5aeca8ac701..d310a3172d2 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolderRenderer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolderRenderer.java @@ -755,9 +755,6 @@ void drawBackground(GC gc, int[] shape, int x, int y, int width, int height, Col /* * Draw the border of the tab - * - * @param gc - * @param shape */ void drawBorder(GC gc, int[] shape) { @@ -1045,8 +1042,6 @@ void drawHighlight(GC gc, Rectangle bounds, int state, int rightEdge) { /* * Draw the unselected border for the receiver on the left. - * - * @param gc */ void drawLeftUnselectedBorder(GC gc, Rectangle bounds, int state) { int x = bounds.x; @@ -1184,8 +1179,6 @@ void drawMinimize(GC gc, Rectangle minRect, int minImageState) { /* * Draw the unselected border for the receiver on the right. - * - * @param gc */ void drawRightUnselectedBorder(GC gc, Rectangle bounds, int state) { int x = bounds.x; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/ControlEditor.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/ControlEditor.java index bf219b809f0..e08c505885d 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/ControlEditor.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/ControlEditor.java @@ -118,7 +118,6 @@ public class ControlEditor { * Creates a ControlEditor for the specified Composite. * * @param parent the Composite above which this editor will be displayed -* */ public ControlEditor (Composite parent) { this.parent = parent; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java index e0d63ae5841..db39296bae3 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java @@ -10235,10 +10235,7 @@ void setStyleRanges(int start, int length, int[] ranges, StyleRange[] styles, bo /** * * @param referenceRanges former ranges, sorted by order and without overlapping, typically returned {@link #getRanges(int, int)} - * @param referenceStyles * @param newRanges former ranges, sorted by order and without overlapping - * @param newStyles - * @return */ private SortedSet computeModifiedLines(int[] referenceRanges, StyleRange[] referenceStyles, int[] newRanges, StyleRange[] newStyles) { if (referenceStyles == null) { @@ -10329,9 +10326,6 @@ private boolean isInRange(int[] ranges, int styleIndex, int offset) { /** * The offset on which the range ends (excluded) - * @param ranges - * @param styleIndex - * @return */ private int endRangeOffset(int[] ranges, int styleIndex) { if (styleIndex < 0 || 2 * styleIndex > ranges.length) { diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextEvent.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextEvent.java index 7004d371e3a..ad1ccc1cabc 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextEvent.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextEvent.java @@ -16,9 +16,6 @@ import org.eclipse.swt.graphics.*; import org.eclipse.swt.widgets.*; -/** - * - */ class StyledTextEvent extends Event { // used by LineStyleEvent int[] ranges; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextListener.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextListener.java index d27682f46e3..293890e0a07 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextListener.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextListener.java @@ -18,8 +18,6 @@ import org.eclipse.swt.widgets.*; class StyledTextListener extends TypedListener { -/** - */ StyledTextListener(SWTEventListener listener) { super(listener); } diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableCursor.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableCursor.java index e4bb0512800..18f0225463b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableCursor.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableCursor.java @@ -195,7 +195,6 @@ public void getName(AccessibleEvent e) { * @see SelectionListener * @see SelectionEvent * @see #removeSelectionListener(SelectionListener) - * */ public void addSelectionListener(SelectionListener listener) { checkWidget(); @@ -626,7 +625,6 @@ public void setForeground (Color color) { *
  • ERROR_WIDGET_DISPOSED - if the receiver has been disposed
  • *
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
  • * - * */ public void setSelection(int row, int column) { checkWidget(); @@ -649,7 +647,6 @@ public void setSelection(int row, int column) { *
  • ERROR_WIDGET_DISPOSED - if the receiver has been disposed
  • *
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
  • * - * */ public void setSelection(TableItem row, int column) { checkWidget(); diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableEditor.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableEditor.java index 574dd987a53..707b912a684 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableEditor.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableEditor.java @@ -87,7 +87,6 @@ public class TableEditor extends ControlEditor { * Creates a TableEditor for the specified Table. * * @param table the Table Control above which this editor will be displayed -* */ public TableEditor (Table table) { super(table); diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TreeEditor.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TreeEditor.java index 0f91ee36006..981414bd82c 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TreeEditor.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TreeEditor.java @@ -87,7 +87,6 @@ public class TreeEditor extends ControlEditor { * Creates a TreeEditor for the specified Tree. * * @param tree the Tree Control above which this editor will be displayed -* */ public TreeEditor (Tree tree) { super(tree); diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DragSourceListener.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DragSourceListener.java index 4d508cb7257..c98a457f8c7 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DragSourceListener.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DragSourceListener.java @@ -25,7 +25,6 @@ *

    After the drop has completed successfully or has been aborted, the application which defines the * DragSource is required to take the appropriate cleanup action. In the case of a successful * move operation, the application must remove the data that was transferred.

    - * */ public interface DragSourceListener extends SWTEventListener { diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetListener.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetListener.java index 0e40f22dc1b..f41dc996aa7 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetListener.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetListener.java @@ -34,7 +34,6 @@ * operation that is performed but the data type is fixed.

    * * @see DropTargetEvent - * */ public interface DropTargetListener extends SWTEventListener { diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/internal/dnd/gtk/ListDragSourceEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/internal/dnd/gtk/ListDragSourceEffect.java index ef66e050ce2..bd7921e127c 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/internal/dnd/gtk/ListDragSourceEffect.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/internal/dnd/gtk/ListDragSourceEffect.java @@ -35,7 +35,6 @@ * @see DragSourceEffect * @see DragSourceEvent * @see Sample code and further information - * */ public class ListDragSourceEffect extends DragSourceEffect { Image dragSourceImage = null; diff --git a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OLE.java b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OLE.java index 6e6b314a9b5..d226cf52906 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OLE.java +++ b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OLE.java @@ -25,7 +25,6 @@ * OLE contains all the constants used to create an ActiveX Control or an OLE Document. * *

    Definitions for these constants can be found in MSDN. - * */ public class OLE extends SWT { diff --git a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleClientSite.java b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleClientSite.java index 7dcb01ec57c..9d1d1a7980d 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleClientSite.java +++ b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleClientSite.java @@ -660,7 +660,6 @@ public int doVerb(int verb) { * @param out the return value of the command * * @return an HRESULT value; OLE.S_OK is returned if successful - * */ public int exec(int cmdID, int options, Variant in, Variant out) { diff --git a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleEventTable.java b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleEventTable.java index 2b47969c11c..29c0eac261a 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleEventTable.java +++ b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleEventTable.java @@ -19,7 +19,6 @@ * look up mechanism that maps an event type * to a listener. Multiple listeners for the * same event type are supported. -* */ class OleEventTable { diff --git a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleFrame.java b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleFrame.java index fa5f3282ec7..66e6df9a2b1 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleFrame.java +++ b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleFrame.java @@ -89,7 +89,6 @@ final public class OleFrame extends Composite * @exception SWTException

    - * */ public OleFrame(Composite parent, int style) { super(parent, style); @@ -382,7 +381,6 @@ object, returns the outer rectangle (relative to the window) where the object ca * * @return the application menu items that will appear in the Container location when an OLE Document * is in-place activated. - * */ public MenuItem[] getContainerMenus(){ return containerMenuItems; @@ -400,7 +398,6 @@ public MenuItem[] getContainerMenus(){ * * @return the application menu items that will appear in the File location when an OLE Document * is in-place activated. - * */ public MenuItem[] getFileMenus(){ return fileMenuItems; @@ -440,7 +437,6 @@ private int GetWindow(long phwnd) { * * @return the application menu items that will appear in the Window location when an OLE Document * is in-place activated. - * */ public MenuItem[] getWindowMenus(){ return windowMenuItems; diff --git a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/Variant.java b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/Variant.java index c75a3bccb4e..3b645e59204 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/Variant.java +++ b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/Variant.java @@ -23,7 +23,6 @@ * *

    It is used within the OleAutomation object for getting a property, setting a property or invoking * a method on an OLE Control or OLE Document. - * */ public final class Variant { /** @@ -115,7 +114,6 @@ public Variant() { * Create a Variant object which represents a Java float as a VT_R4. * * @param val the Java float value that this Variant represents - * */ public Variant(float val) { type = COM.VT_R4; @@ -136,7 +134,6 @@ public Variant(double val) { * Create a Variant object which represents a Java int as a VT_I4. * * @param val the Java int value that this Variant represents - * */ public Variant(int val) { type = COM.VT_I4; @@ -152,7 +149,6 @@ public Variant(int val) { * * @param ptr a pointer to the data being transferred. * @param byRefType the type of the data being transferred such as OLE.VT_BSTR | OLE.VT_BYREF - * */ public Variant(long ptr, short byRefType) { type = byRefType; @@ -162,7 +158,6 @@ public Variant(long ptr, short byRefType) { * Create a Variant object which represents an IDispatch interface as a VT_Dispatch. * * @param automation the OleAutomation object that this Variant represents - * */ public Variant(OleAutomation automation) { type = COM.VT_DISPATCH; @@ -176,7 +171,6 @@ public Variant(OleAutomation automation) { * @since 2.0 * * @param idispatch the IDispatch object that this Variant represents - * */ public Variant(IDispatch idispatch) { type = COM.VT_DISPATCH; @@ -189,7 +183,6 @@ public Variant(IDispatch idispatch) { * this Variant. * * @param unknown the IUnknown object that this Variant represents - * */ public Variant(IUnknown unknown) { type = COM.VT_UNKNOWN; @@ -210,7 +203,6 @@ public Variant(long val) { * Create a Variant object which represents a Java String as a VT_BSTR. * * @param string the Java String value that this Variant represents - * */ public Variant(String string) { type = COM.VT_BSTR; @@ -220,7 +212,6 @@ public Variant(String string) { * Create a Variant object which represents a Java short as a VT_I2. * * @param val the Java short value that this Variant represents - * */ public Variant(short val) { type = COM.VT_I2; @@ -230,7 +221,6 @@ public Variant(short val) { * Create a Variant object which represents a Java boolean as a VT_BOOL. * * @param val the Java boolean value that this Variant represents - * */ public Variant(boolean val) { type = COM.VT_BOOL; @@ -355,7 +345,6 @@ public IDispatch getDispatch() { * @exception SWTException

    - * */ public boolean getBoolean() { if (type == COM.VT_EMPTY) { @@ -389,7 +378,6 @@ public boolean getBoolean() { *

    If this Variant does not contain a reference to data, zero is returned. * * @return a pointer to the referenced data represented by this Variant or 0 - * */ public long getByRef() { if (type == COM.VT_EMPTY) { diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/common/org/eclipse/swt/internal/Library.java b/bundles/org.eclipse.swt/Eclipse SWT PI/common/org/eclipse/swt/internal/Library.java index 2bf4c89df83..e1852e7cbb0 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/common/org/eclipse/swt/internal/Library.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/common/org/eclipse/swt/internal/Library.java @@ -116,9 +116,6 @@ static int parseVersion(String version) { /** * Returns the Java version number as an integer. * - * @param major - * @param minor - * @param micro * @return the version */ public static int JAVA_VERSION (int major, int minor, int micro) { @@ -128,8 +125,6 @@ public static int JAVA_VERSION (int major, int minor, int micro) { /** * Returns the SWT version number as an integer. * - * @param major - * @param minor * @return the version */ public static int SWT_VERSION (int major, int minor) { diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTK.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTK.java index 03f09c55410..5542c86947e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTK.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTK.java @@ -944,13 +944,11 @@ public class GTK extends OS { /** * @param label cast=(GtkLabel *) * @param xalign cast=(gfloat) - * */ public static final native void gtk_label_set_xalign(long label, float xalign); /** * @param label cast=(GtkLabel *) * @param yalign cast=(gfloat) - * */ public static final native void gtk_label_set_yalign(long label, float yalign); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/ImageLoader.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/ImageLoader.java index bbe5ac8d518..5b063ab2e78 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/ImageLoader.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/ImageLoader.java @@ -78,7 +78,6 @@ public class ImageLoader { * the background pixel for the logical screen (this * corresponds to the GIF89a Background Color Index value). * The default is -1 which means 'unspecified background' - * */ public int backgroundPixel; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Region.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Region.java index adb2b99efb5..7dbe8e518c5 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Region.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Region.java @@ -207,7 +207,6 @@ static long polyRgn(int[] pointArray, int count) { * * * @since 3.0 - * */ public void add (int[] pointArray) { if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/internal/graphics/ImageUtil.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/internal/graphics/ImageUtil.java index 10c422d8a0d..3e74cacf364 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/internal/graphics/ImageUtil.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/internal/graphics/ImageUtil.java @@ -22,7 +22,6 @@ * Not used on other platforms * * @since 3.110 - * */ public class ImageUtil { /** diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java index 8e39df48f7d..5b04b5e5ecc 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java @@ -3506,7 +3506,6 @@ static long getCurrentKeyLayout () { * * * @since 3.0 - * */ public boolean post(Event event) { synchronized (Device.class) { diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java index 76f146bb8ba..d0b5067c677 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java @@ -1163,7 +1163,6 @@ public Point getMinimumSize () { * * * @since 3.0 - * */ @Override public Region getRegion () { diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TabItem.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TabItem.java index b7a2f8eaf17..ebaafb30163 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TabItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TabItem.java @@ -392,7 +392,6 @@ public void setImage (Image image) { *

  • ERROR_WIDGET_DISPOSED - if the receiver has been disposed
  • *
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
  • * - * */ @Override public void setText (String string) { diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TableColumn.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TableColumn.java index e2b84453f98..59e3a77847d 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TableColumn.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TableColumn.java @@ -521,7 +521,6 @@ public int getWidth () { *
  • ERROR_WIDGET_DISPOSED - if the receiver has been disposed
  • *
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
  • * - * */ public void pack () { checkWidget (); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TaskItem.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TaskItem.java index f3be9bf4ef3..58440eac0ca 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TaskItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TaskItem.java @@ -159,7 +159,6 @@ public String getOverlayText () { *
  • ERROR_WIDGET_DISPOSED - if the receiver has been disposed
  • *
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
  • * - * */ public TaskBar getParent () { checkWidget (); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TreeColumn.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TreeColumn.java index b3848ac4318..c8789d53704 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TreeColumn.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TreeColumn.java @@ -523,7 +523,6 @@ public int getWidth () { *
  • ERROR_WIDGET_DISPOSED - if the receiver has been disposed
  • *
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
  • * - * */ public void pack () { checkWidget (); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TreeItem.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TreeItem.java index b9982aa2d76..692868bedf2 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TreeItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TreeItem.java @@ -392,7 +392,6 @@ void destroyWidget () { * * * @since 2.0 - * */ public Color getBackground () { checkWidget (); @@ -597,7 +596,6 @@ public Font getFont (int index) { * * * @since 2.0 - * */ public Color getForeground () { checkWidget (); @@ -1055,7 +1053,6 @@ void sendExpand (boolean expand, boolean recurse) { * * * @since 2.0 - * */ public void setBackground (Color color) { checkWidget (); @@ -1087,7 +1084,6 @@ public void setBackground (Color color) { * * * @since 3.1 - * */ public void setBackground (int index, Color color) { checkWidget (); @@ -1244,7 +1240,6 @@ public void setFont (int index, Font font) { * * * @since 2.0 - * */ public void setForeground (Color color) { checkWidget (); @@ -1276,7 +1271,6 @@ public void setForeground (Color color) { * * * @since 3.1 - * */ public void setForeground (int index, Color color){ checkWidget (); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/SwtRunnable.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/SwtRunnable.java index 9e0497aa203..6460043ae94 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/SwtRunnable.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/SwtRunnable.java @@ -17,7 +17,6 @@ * A method that returns no result and may throw a checked exception of the given * type. * @since 3.123 - * */ @FunctionalInterface public interface SwtRunnable { diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/RGBA.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/RGBA.java index 43f450ea1aa..efb687c0050 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/RGBA.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/RGBA.java @@ -89,7 +89,6 @@ public RGBA(int red, int green, int blue, int alpha) { * the saturation or brightness is not between 0 and 1 or if the alpha * is not between 0 and 255 * -* */ public RGBA(float hue, float saturation, float brightness, float alpha) { if ((alpha > 255) || (alpha < 0)) SWT.error(SWT.ERROR_INVALID_ARGUMENT); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/FileFormat.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/FileFormat.java index 4ac32acfbe2..943cddc9fd4 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/FileFormat.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/FileFormat.java @@ -22,7 +22,6 @@ /** * Abstract factory class for loading/unloading images from files or streams * in various image file formats. - * */ public abstract class FileFormat { static final String FORMAT_PACKAGE = "org.eclipse.swt.internal.image"; //$NON-NLS-1$ diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/layout/BorderLayout.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/layout/BorderLayout.java index 1c037f74583..33822bf3a34 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/layout/BorderLayout.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/layout/BorderLayout.java @@ -84,7 +84,6 @@ public class BorderLayout extends Layout { * placed along the left and right edges of the layout. * * The default value is 0. - * */ public int marginWidth = 0; /** @@ -92,7 +91,6 @@ public class BorderLayout extends Layout { * placed along the top and bottom edges of the layout. * * The default value is 0. - * */ public int marginHeight = 0; /** @@ -100,7 +98,6 @@ public class BorderLayout extends Layout { * neighboring regions. * * The default value is 0. - * */ public int spacing = 0; /** @@ -108,7 +105,6 @@ public class BorderLayout extends Layout { * and its neighboring control inside a region. * * The default value is 0. - * */ public int controlSpacing = 0; /** @@ -125,7 +121,6 @@ public class BorderLayout extends Layout { * controls, valid values range between [0 ... 1] * * The default value is 0.5 (equal distribution of available space) - * */ public double heightDistributionFactor = 0.5; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Monitor.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Monitor.java index e86c2a3d1b7..6aa9f99f034 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Monitor.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/widgets/Monitor.java @@ -108,7 +108,6 @@ void setClientArea (Rectangle rect) { * @return the receiver's hash * * @see #equals(Object) - * */ @Override public int hashCode () { diff --git a/bundles/org.eclipse.swt/Eclipse SWT/emulated/bidi/org/eclipse/swt/internal/BidiUtil.java b/bundles/org.eclipse.swt/Eclipse SWT/emulated/bidi/org/eclipse/swt/internal/BidiUtil.java index 629c90038be..a53328dea3e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/emulated/bidi/org/eclipse/swt/internal/BidiUtil.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/emulated/bidi/org/eclipse/swt/internal/BidiUtil.java @@ -52,13 +52,11 @@ public static void addLanguageListener (Control control, Runnable runnable) { } /* * Not implemented. - * */ public static void drawGlyphs(GC gc, char[] renderBuffer, int[] renderDx, int x, int y) { } /* * Bidi not supported on emulated platforms. - * */ public static boolean isBidiPlatform() { return false; @@ -77,13 +75,11 @@ public static int getFontBidiAttributes(GC gc) { } /* * Not implemented. - * */ public static void getOrderInfo(GC gc, String text, int[] order, byte[] classBuffer, int flags, int [] offsets) { } /* * Not implemented. Returns null. - * */ public static char[] getRenderInfo(GC gc, String text, int[] order, byte[] classBuffer, int[] dx, int flags, int[] offsets) { return null; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/emulated/taskbar/org/eclipse/swt/widgets/TaskItem.java b/bundles/org.eclipse.swt/Eclipse SWT/emulated/taskbar/org/eclipse/swt/widgets/TaskItem.java index 8189395763f..589ca8671ba 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/emulated/taskbar/org/eclipse/swt/widgets/TaskItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/emulated/taskbar/org/eclipse/swt/widgets/TaskItem.java @@ -146,7 +146,6 @@ public String getOverlayText () { *
  • ERROR_WIDGET_DISPOSED - if the receiver has been disposed
  • *
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
  • * - * */ public TaskBar getParent () { checkWidget (); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/emulated/tooltip/org/eclipse/swt/widgets/ToolTip.java b/bundles/org.eclipse.swt/Eclipse SWT/emulated/tooltip/org/eclipse/swt/widgets/ToolTip.java index 39fe7d3a260..193390ef52d 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/emulated/tooltip/org/eclipse/swt/widgets/ToolTip.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/emulated/tooltip/org/eclipse/swt/widgets/ToolTip.java @@ -263,7 +263,6 @@ void configure () { *
  • ERROR_WIDGET_DISPOSED - if the receiver has been disposed
  • *
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
  • * - * */ public boolean getAutoHide () { checkWidget (); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/ImageLoader.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/ImageLoader.java index 7a0f7aee609..89b97cd86e6 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/ImageLoader.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/ImageLoader.java @@ -83,7 +83,6 @@ public class ImageLoader { * the background pixel for the logical screen (this * corresponds to the GIF89a Background Color Index value). * The default is -1 which means 'unspecified background' - * */ public int backgroundPixel; @@ -170,7 +169,6 @@ public ImageData[] load(InputStream stream) { /** * Return true if the image is an interlaced PNG file. * This is used to check whether ImageLoaderEvent should be fired when loading images. - * @param imageAsByteArray * @return true iff 29th byte of PNG files is not zero */ boolean isInterlacedPNG(byte [] imageAsByteArray) { @@ -315,8 +313,6 @@ public ImageData[] load(String filename) { /** * Load GdkPixbuf directly using gdk_pixbuf_new_from_file, * without FileInputStream. - * @param filename - * @return */ ImageData[] loadFromFile(String filename) { long pixbuf = gdk_pixbuf_new_from_file(filename); @@ -363,7 +359,6 @@ int getImageFormat(long loader) { /** * Convert GdkPixbuf pointer to Java object ImageData - * @param pixbuf * @return ImageData with pixbuf data */ static ImageData pixbufToImageData(long pixbuf) { @@ -426,8 +421,6 @@ static ImageData pixbufToImageData(long pixbuf) { /** * Returns GdkPixbuf pointer by loading an image from filename (Java string) - * @param filename - * @return */ static long gdk_pixbuf_new_from_file(String filename) { int length = filename.length (); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Region.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Region.java index 3f5e472de78..283d19df049 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Region.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Region.java @@ -152,7 +152,6 @@ static void cairo_region_get_rectangles(long region, long [] rectangles, int[] n * * * @since 3.0 - * */ public void add (int[] pointArray) { if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/internal/GDBus.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/internal/GDBus.java index 78def99d4af..648c9ac8dcd 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/internal/GDBus.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/internal/GDBus.java @@ -99,7 +99,6 @@ public static class GDBusMethod { * (args) -> { * return new Object[] {true}; // You should 'g_variant_unref(result)' on client side. * }) - * */ public GDBusMethod(String name, String [][] inputArgs, String [][] outputArgs, Function userFunction) { this.name = name; @@ -292,7 +291,6 @@ private static long onNameLost (long connection, long name, long user_data) { * @param gvar_parameters GVariant * @param invocation GDBusMethodInvocation * @param user_data gpointer - * @return */ @SuppressWarnings("unused") // Callback only called directly by JNI. private static long handleMethod ( diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java index dec856014eb..224dab38809 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java @@ -293,7 +293,6 @@ long eventSurface () { /** * GdkEventType constants different on GTK4 and GTK3. * This checks for GTK versions and return the correct constants defined in GDK.java - * @param eventType * @return constant defined */ static int fixGdkEventTypeValues(int eventType) { diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java index 1906552587f..1e200aa53b8 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java @@ -269,9 +269,6 @@ protected void checkSubclass () { * is at the longest length possible. i.e. Assume DATE/HOUR field to be double digit, * MONTH field for SWT.DATE | SWT.LONG is the longest text. * - * @param wHint - * @param hHint - * @param changed * @return text entry size to hold the longest possible formatted text. */ Point computeMaxTextSize (int wHint, int hHint, boolean changed) { @@ -1322,8 +1319,6 @@ public void removeSelectionListener (SelectionListener listener) { /** * selects the first occurrence of the given field - * - * @param field */ void selectField(Field field) { AttributedCharacterIterator iterator = dateFormat.formatToCharacterIterator(calendar.getTime()); @@ -1340,10 +1335,6 @@ void selectField(Field field) { /** * Selects the given field at the given start/end coordinates - * - * @param field - * @param start - * @param end */ void selectField(FieldPosition fieldPosition) { boolean sameField = isSameField(fieldPosition, currentField); @@ -2352,9 +2343,6 @@ void releaseWidget () { /** * Returns a field with updated positionla data - * - * @param field - * @return */ private FieldPosition updateField(FieldPosition field) { AttributedCharacterIterator iterator = dateFormat.formatToCharacterIterator(calendar.getTime()); @@ -2400,7 +2388,6 @@ private FieldPosition getNextField(FieldPosition field) { /** * - * @param field * @return the next field of the given one */ private FieldPosition getPreviousField(FieldPosition field) { @@ -2488,7 +2475,6 @@ private static boolean isSameField(FieldPosition p1, FieldPosition p2) { /** * Extracts the calendarfield for the given fieldposition * - * @param fieldPosition * @return the {@link Calendar} field or -1 if this is not a valid Fieldposition */ private static int getCalendarField(FieldPosition fieldPosition) { @@ -2502,7 +2488,6 @@ private static int getCalendarField(FieldPosition fieldPosition) { /** * Extracts the calendarfield transforming HOUR1 types to HOUR0 * - * @param field * @return the calendarfield coresponding to the {@link Field} */ private static int getCalendarField(Field field) { diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java index 9568c46fe9e..0df349dda82 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java @@ -4272,7 +4272,6 @@ long findFocusedWindow() { * * * @since 3.0 - * */ public boolean post (Event event) { /* diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java index 646e530603c..3843e20124c 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java @@ -1393,7 +1393,6 @@ public boolean getVisible () { * * * @since 3.0 - * */ @Override public Region getRegion () { diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabItem.java index 28782a314f1..64479c09e02 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabItem.java @@ -463,7 +463,6 @@ void setOrientation (boolean create) { *
  • ERROR_WIDGET_DISPOSED - if the receiver has been disposed
  • *
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
  • * - * */ @Override public void setText (String string) { diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableColumn.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableColumn.java index 5af05f7948c..8fbaec89777 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableColumn.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TableColumn.java @@ -469,7 +469,6 @@ void hookEvents () { *
  • ERROR_WIDGET_DISPOSED - if the receiver has been disposed
  • *
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
  • * - * */ public void pack () { checkWidget(); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java index 5ae6df273d9..c6f99130fed 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java @@ -2059,7 +2059,6 @@ public void insert (String string) { * @param iter the GtkTextIter representing the insertion/selection point * @param scrollTo the GtkTextIter representing the point to be scrolled to (can be null) * @param insert true if insertion is being performed, false if selection - * */ private void scrollIfNotVisible(byte [] iter, byte [] scrollTo, boolean insert) { GdkRectangle rect = new GdkRectangle (); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java index 8d588b767ca..9f467287625 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java @@ -366,7 +366,6 @@ void destroyWidget () { *
  • ERROR_WIDGET_DISPOSED - if the receiver has been disposed
  • *
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
  • * - * */ public boolean getAutoHide () { checkWidget (); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java index d1b5d9eb813..d2d967f0a62 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tracker.java @@ -337,8 +337,6 @@ Rectangle computeBounds () { * - Rectangles can have absolute coords [Tracker(Display)] or relative to parent [Tracker(Composite)] * - This method is called a lot, optimize your code. * - Note, region != rectangle. A region can have a non-squared form, e.g an 'L' shape. - * - * @param rects */ void drawRectangles (Rectangle [] rects) { long gdkResource = 0; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java index 0dd7ac6f475..6208ef498a2 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeColumn.java @@ -461,7 +461,6 @@ void hookEvents () { *
  • ERROR_WIDGET_DISPOSED - if the receiver has been disposed
  • *
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
  • * - * */ public void pack () { checkWidget(); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java index 346d6a8e6a2..6c127c3f23f 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java @@ -363,7 +363,6 @@ void destroyWidget () { * * * @since 2.0 - * */ public Color getBackground () { checkWidget (); @@ -603,7 +602,6 @@ public Font getFont (int index) { * * * @since 2.0 - * */ public Color getForeground () { checkWidget (); @@ -1138,7 +1136,6 @@ public void removeAll () { * * * @since 2.0 - * */ public void setBackground (Color color) { checkWidget (); @@ -1168,7 +1165,6 @@ public void setBackground (Color color) { * * * @since 3.1 - * */ public void setBackground (int index, Color color) { checkWidget (); @@ -1377,7 +1373,6 @@ public void setFont (int index, Font font) { * * * @since 2.0 - * */ public void setForeground (Color color){ checkWidget (); @@ -1407,7 +1402,6 @@ public void setForeground (Color color){ * * * @since 3.1 - * */ public void setForeground (int index, Color color){ checkWidget (); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java index cf6ca6a98b3..ee086b24725 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java @@ -2570,7 +2570,6 @@ void gtk_widget_get_preferred_size (long widget, GtkRequisition requisition){ * Retrieves the amount of space around the outside of the container. * On GTK3: this is done using gtk_container_get_border_width. * On GTK4: this is done by returning the max margin on any side. - * @param handle * @return amount of space around the outside of the container. */ int gtk_container_get_border_width_or_margin (long handle) { @@ -2586,8 +2585,6 @@ int gtk_container_get_border_width_or_margin (long handle) { } /** * Sets the border width of the container to all sides of the container. - * @param handle - * @param border_width */ void gtk_container_set_border_width (long handle, int border_width) { if (GTK.GTK4) { diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java index b3df1250569..baa5273ea5f 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java @@ -604,7 +604,6 @@ static long createGdipFont(long hDC, long hFont, long graphics, long fontCollect * The returned brush has to be disposed by the caller. * * @param brush Brush with pattern - * @param alpha * @return new brush with transparency * @exception SWTError
      *
    • ERROR_CANNOT_BE_ZERO - if the image in the brush is null
    • diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/ImageLoader.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/ImageLoader.java index f309c6186a0..2fe55b38810 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/ImageLoader.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/ImageLoader.java @@ -78,7 +78,6 @@ public class ImageLoader { * the background pixel for the logical screen (this * corresponds to the GIF89a Background Color Index value). * The default is -1 which means 'unspecified background' - * */ public int backgroundPixel; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Region.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Region.java index e2409b4772c..4cdea1cd0c8 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Region.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Region.java @@ -114,7 +114,6 @@ public Region (Device device) { *
    * * @since 3.0 - * */ public void add (int[] pointArray) { if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java index e82583480e8..cc2750b86f8 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java @@ -3486,7 +3486,6 @@ int numpadKey (int key) { * * * @since 3.0 - * */ public boolean post (Event event) { synchronized (Device.class) { diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Shell.java index 2175d13b49a..cb96a2cbd91 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Shell.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Shell.java @@ -1141,7 +1141,6 @@ public boolean getModified () { * * * @since 3.0 - * */ @Override public Region getRegion () { @@ -2323,7 +2322,6 @@ int widgetStyle () { * * WS_OVERLAPPED = 0 * WS_CAPTION = WS_BORDER | WS_DLGFRAME - * */ return bits | OS.WS_OVERLAPPED | OS.WS_CAPTION; } diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TabItem.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TabItem.java index 62d29aa302d..d8cea0913b3 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TabItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TabItem.java @@ -343,7 +343,6 @@ public void setImage (Image image) { *
  • ERROR_WIDGET_DISPOSED - if the receiver has been disposed
  • *
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
  • * - * */ @Override public void setText (String string) { diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java index dd3638e1205..d9acb9239ee 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Table.java @@ -4604,7 +4604,6 @@ void setItemHeight (boolean fixScroll) { * visible and are shown afterwards. The fix is to * save the top index, scroll to the top of the table * and then restore the original top index. - * */ int topIndex = getTopIndex (); if (fixScroll && topIndex != 0) { diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableColumn.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableColumn.java index 097ab46efa5..9ba9d5d4c50 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableColumn.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TableColumn.java @@ -401,7 +401,6 @@ private int calcAutoWidth(int index, boolean withHeader) { *
  • ERROR_WIDGET_DISPOSED - if the receiver has been disposed
  • *
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
  • * - * */ public void pack () { checkWidget (); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TaskItem.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TaskItem.java index 86e09819e59..bffb472388a 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TaskItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TaskItem.java @@ -174,7 +174,6 @@ public String getOverlayText () { *
  • ERROR_WIDGET_DISPOSED - if the receiver has been disposed
  • *
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
  • * - * */ public TaskBar getParent () { checkWidget (); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolTip.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolTip.java index a6d0398c8d3..fcef3775924 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolTip.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/ToolTip.java @@ -143,7 +143,6 @@ void destroyWidget () { *
  • ERROR_WIDGET_DISPOSED - if the receiver has been disposed
  • *
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
  • * - * */ public boolean getAutoHide () { checkWidget(); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeColumn.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeColumn.java index 495b10a7566..f5db5f961be 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeColumn.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeColumn.java @@ -338,7 +338,6 @@ int getWidthInPixels () { *
  • ERROR_WIDGET_DISPOSED - if the receiver has been disposed
  • *
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
  • * - * */ public void pack () { checkWidget (); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeItem.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeItem.java index 494f9874dc5..4758478318f 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/TreeItem.java @@ -328,7 +328,6 @@ long fontHandle (int index) { * * * @since 2.0 - * */ public Color getBackground () { checkWidget (); @@ -636,7 +635,6 @@ public Font getFont (int index) { * * * @since 2.0 - * */ public Color getForeground () { checkWidget (); @@ -1070,7 +1068,6 @@ public void removeAll () { * * * @since 2.0 - * */ public void setBackground (Color color) { checkWidget (); @@ -1105,7 +1102,6 @@ public void setBackground (Color color) { * * * @since 3.1 - * */ public void setBackground (int index, Color color) { checkWidget (); @@ -1484,7 +1480,6 @@ public void setFont (int index, Font font) { * * * @since 2.0 - * */ public void setForeground (Color color) { checkWidget (); @@ -1519,7 +1514,6 @@ public void setForeground (Color color) { * * * @since 3.1 - * */ public void setForeground (int index, Color color){ checkWidget (); diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/accessibility/CTableColumn.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/accessibility/CTableColumn.java index 07af3a09c78..2542316a313 100644 --- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/accessibility/CTableColumn.java +++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/accessibility/CTableColumn.java @@ -473,7 +473,6 @@ int getX () { *
  • ERROR_WIDGET_DISPOSED - if the receiver has been disposed
  • *
  • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver
  • * - * */ public void pack () { checkWidget (); diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CanvasTab.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CanvasTab.java index c8112227eea..121c786d29e 100644 --- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CanvasTab.java +++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/CanvasTab.java @@ -251,8 +251,6 @@ void resizeScrollBars () { /** * Scrolls the canvas horizontally. - * - * @param scrollBar */ void scrollHorizontal (ScrollBar scrollBar) { Rectangle bounds = canvas.getClientArea(); @@ -266,8 +264,6 @@ void scrollHorizontal (ScrollBar scrollBar) { /** * Scrolls the canvas vertically. - * - * @param scrollBar */ void scrollVertical (ScrollBar scrollBar) { Rectangle bounds = canvas.getClientArea(); diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/GradientDialog.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/GradientDialog.java index 14dec54fee3..01ee164237c 100644 --- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/GradientDialog.java +++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/GradientDialog.java @@ -248,7 +248,6 @@ public RGB getFirstRGB() { /** * Sets the first RGB. - * @param rgb */ public void setFirstRGB(RGB rgb) { this.rgb1 = rgb; @@ -263,7 +262,6 @@ public RGB getSecondRGB() { /** * Sets the second RGB. - * @param rgb */ public void setSecondRGB(RGB rgb) { this.rgb2 = rgb; diff --git a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/GraphicsExample.java b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/GraphicsExample.java index 68087492050..aa2d0ccbd98 100644 --- a/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/GraphicsExample.java +++ b/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/GraphicsExample.java @@ -241,7 +241,6 @@ void recreateCanvas() { /** * Creates the control panel - * @param parent */ void createControlPanel(Composite parent) { Group group; diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet174.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet174.java index 9777d7f4bb2..534568279e7 100644 --- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet174.java +++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet174.java @@ -39,7 +39,6 @@ * @deprecated * This snippet is being deprecated as the org.eclipse.swt.opengl plugin it needs * is not available anymore. - * */ @Deprecated public class Snippet174 { diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet325.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet325.java index f26ceeefdeb..dea3a83937f 100644 --- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet325.java +++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet325.java @@ -18,7 +18,6 @@ * * For a list of all SWT example snippets see * http://www.eclipse.org/swt/snippets/ - * */ import org.eclipse.swt.*; import org.eclipse.swt.custom.*; diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet328.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet328.java index 9ba3d05318b..8ff4806fee7 100644 --- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet328.java +++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet328.java @@ -18,7 +18,6 @@ * * For a list of all SWT example snippets see * http://www.eclipse.org/swt/snippets/ - * */ import org.eclipse.swt.*; import org.eclipse.swt.custom.*; diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet380.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet380.java index d61b8a096e4..eaa2ce9c161 100644 --- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet380.java +++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet380.java @@ -23,7 +23,6 @@ /** * This shows the usage of the display in the executor framework in conjunction with a CompletableFuture - * */ public class Snippet380 { public static void main(String[] args) { diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_ImageData.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_ImageData.java index dc5b0609dba..abd5fa9e893 100644 --- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_ImageData.java +++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_graphics_ImageData.java @@ -60,11 +60,6 @@ public void setUp() { /** * Tests {@link ImageData#blit}: * creates a random image and tests over all combinations of depth,format,scale - * @throws InvocationTargetException - * @throws IllegalArgumentException - * @throws IllegalAccessException - * @throws SecurityException - * @throws NoSuchMethodException */ @Test public void test_blit() throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException { @@ -122,11 +117,6 @@ public void test_blit() throws NoSuchMethodException, SecurityException, Illegal /** * Tests {@link ImageData#blit}: * Ensures that (MSB_FIRST, LSB_FIRST) round trip produces original. - * @throws InvocationTargetException - * @throws IllegalArgumentException - * @throws IllegalAccessException - * @throws SecurityException - * @throws NoSuchMethodException */ @Test public void test_blit_MsbLsb() throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException { diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_layout_BorderLayout.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_layout_BorderLayout.java index 454ecb0c928..dbbc6c7fa0f 100644 --- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_layout_BorderLayout.java +++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_layout_BorderLayout.java @@ -30,7 +30,6 @@ /** * Automated Test Suite for class {@link BorderLayout} - * */ public class Test_org_eclipse_swt_layout_BorderLayout { diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Widget.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Widget.java index 337aad8fa6c..e119f1fd008 100644 --- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Widget.java +++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_widgets_Widget.java @@ -240,7 +240,6 @@ protected String getClassName() { * called for headless tests! * @param shell The shell to render. * @param durationMs duration in milliseconds. Method exits after duration. - * @throws InterruptedException */ protected void render(Shell shell, int durationMs) throws InterruptedException { long timestamp = System.currentTimeMillis(); diff --git a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/BenchmarkSwtMultithreading.java b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/BenchmarkSwtMultithreading.java index 73e5f699a4f..de30ba06586 100644 --- a/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/BenchmarkSwtMultithreading.java +++ b/tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/performance/BenchmarkSwtMultithreading.java @@ -30,7 +30,6 @@ public class BenchmarkSwtMultithreading { * see https://github.com/eclipse-platform/eclipse.platform.swt/issues/74 * * @param args ignored - * @throws InterruptedException */ public static void main(String[] args) throws InterruptedException { final Display display = new Display();