Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2018-06-15 10:23:46 +0000
committerLars Vogel2018-06-19 07:39:10 +0000
commitdb217309c894fd4d8ee240fb022ee3fad9fa27a7 (patch)
tree9c0c5273e20fc2237f488b6369caaa438255d2d1 /bundles
parentac84f234936f364b581de0d4ec9939398a5f1946 (diff)
downloadeclipse.platform.swt-db217309c894fd4d8ee240fb022ee3fad9fa27a7.tar.gz
eclipse.platform.swt-db217309c894fd4d8ee240fb022ee3fad9fa27a7.tar.xz
eclipse.platform.swt-db217309c894fd4d8ee240fb022ee3fad9fa27a7.zip
Removes redundant modifiers from swt.events packages
Based on cleaup action and manually adding public to the static method overrides Change-Id: I9c45d15c361f9d6cd80cfb382cc184bd1d177fea Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/ArmListener.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/ControlListener.java8
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/DisposeListener.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/DragDetectListener.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/ExpandListener.java8
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/FocusListener.java8
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/GestureListener.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/HelpListener.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/KeyListener.java8
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MenuDetectListener.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MenuListener.java8
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/ModifyListener.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MouseListener.java12
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MouseMoveListener.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MouseTrackListener.java12
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MouseWheelListener.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/PaintListener.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/SegmentListener.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/SelectionListener.java8
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/ShellListener.java20
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/TouchListener.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/TraverseListener.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/TreeListener.java8
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/VerifyListener.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/Drawable.java6
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageData.java8
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageDataProvider.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageFileNameProvider.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageLoaderListener.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/WinICOFileFormat.java2
30 files changed, 75 insertions, 75 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/ArmListener.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/ArmListener.java
index 5ae00cd3e6..d8fb382c80 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/ArmListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/ArmListener.java
@@ -36,5 +36,5 @@ public interface ArmListener extends SWTEventListener {
*
* @param e an event containing information about the arm
*/
-public void widgetArmed(ArmEvent e);
+void widgetArmed(ArmEvent e);
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/ControlListener.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/ControlListener.java
index c77aff377c..02352c9242 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/ControlListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/ControlListener.java
@@ -39,14 +39,14 @@ public interface ControlListener extends SWTEventListener {
*
* @param e an event containing information about the move
*/
-public void controlMoved(ControlEvent e);
+void controlMoved(ControlEvent e);
/**
* Sent when the size (width, height) of a control changes.
*
* @param e an event containing information about the resize
*/
-public void controlResized(ControlEvent e);
+void controlResized(ControlEvent e);
/**
* Static helper method to create a <code>ControlListener</code> for the
@@ -56,7 +56,7 @@ public void controlResized(ControlEvent e);
* @return ControlListener
* @since 3.107
*/
-public static ControlListener controlMovedAdapter(Consumer<ControlEvent> c) {
+static ControlListener controlMovedAdapter(Consumer<ControlEvent> c) {
return new ControlAdapter() {
@Override
public void controlMoved(ControlEvent e) {
@@ -73,7 +73,7 @@ public static ControlListener controlMovedAdapter(Consumer<ControlEvent> c) {
* @return ControlListener
* @since 3.107
*/
-public static ControlListener controlResizedAdapter(Consumer<ControlEvent> c) {
+static ControlListener controlResizedAdapter(Consumer<ControlEvent> c) {
return new ControlAdapter() {
@Override
public void controlResized(ControlEvent e) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/DisposeListener.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/DisposeListener.java
index a7e7f5d1cf..97c4dfbf82 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/DisposeListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/DisposeListener.java
@@ -37,5 +37,5 @@ public interface DisposeListener extends SWTEventListener {
*
* @param e an event containing information about the dispose
*/
-public void widgetDisposed(DisposeEvent e);
+void widgetDisposed(DisposeEvent e);
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/DragDetectListener.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/DragDetectListener.java
index 6c3f217d75..7ae962eeee 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/DragDetectListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/DragDetectListener.java
@@ -38,5 +38,5 @@ public interface DragDetectListener extends SWTEventListener {
*
* @param e an event containing information about the drag
*/
-public void dragDetected(DragDetectEvent e);
+void dragDetected(DragDetectEvent e);
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/ExpandListener.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/ExpandListener.java
index fe43a98255..6158afa9ef 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/ExpandListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/ExpandListener.java
@@ -40,14 +40,14 @@ public interface ExpandListener extends SWTEventListener {
*
* @param e an event containing information about the operation
*/
-public void itemCollapsed(ExpandEvent e);
+void itemCollapsed(ExpandEvent e);
/**
* Sent when an item is expanded.
*
* @param e an event containing information about the operation
*/
-public void itemExpanded(ExpandEvent e);
+void itemExpanded(ExpandEvent e);
/**
* Static helper method to create a <code>ExpandListener</code> for the
@@ -57,7 +57,7 @@ public void itemExpanded(ExpandEvent e);
* @return ExpandListener
* @since 3.107
*/
-public static ExpandListener itemCollapsedAdapter(Consumer<ExpandEvent> c) {
+static ExpandListener itemCollapsedAdapter(Consumer<ExpandEvent> c) {
return new ExpandAdapter() {
@Override
public void itemCollapsed(ExpandEvent e) {
@@ -74,7 +74,7 @@ public static ExpandListener itemCollapsedAdapter(Consumer<ExpandEvent> c) {
* @return ExpandListener
* @since 3.107
*/
-public static ExpandListener itemExpandedAdapter(Consumer<ExpandEvent> c) {
+static ExpandListener itemExpandedAdapter(Consumer<ExpandEvent> c) {
return new ExpandAdapter() {
@Override
public void itemExpanded(ExpandEvent e) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/FocusListener.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/FocusListener.java
index e91350c405..ce41ca1b29 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/FocusListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/FocusListener.java
@@ -39,14 +39,14 @@ public interface FocusListener extends SWTEventListener {
*
* @param e an event containing information about the focus change
*/
-public void focusGained(FocusEvent e);
+void focusGained(FocusEvent e);
/**
* Sent when a control loses focus.
*
* @param e an event containing information about the focus change
*/
-public void focusLost(FocusEvent e);
+void focusLost(FocusEvent e);
/**
@@ -57,7 +57,7 @@ public void focusLost(FocusEvent e);
* @return FocusListener
* @since 3.106
*/
-public static FocusListener focusGainedAdapter(Consumer<FocusEvent> c) {
+static FocusListener focusGainedAdapter(Consumer<FocusEvent> c) {
return new FocusAdapter() {
@Override
public void focusGained(FocusEvent e) {
@@ -74,7 +74,7 @@ public static FocusListener focusGainedAdapter(Consumer<FocusEvent> c) {
* @return FocusListener
* @since 3.106
*/
-public static FocusListener focusLostAdapter(Consumer<FocusEvent> c) {
+static FocusListener focusLostAdapter(Consumer<FocusEvent> c) {
return new FocusAdapter() {
@Override
public void focusLost(FocusEvent e) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/GestureListener.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/GestureListener.java
index 43b46eb952..38e83fb3ad 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/GestureListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/GestureListener.java
@@ -43,6 +43,6 @@ public interface GestureListener extends SWTEventListener {
*
* @param e an event containing information about the gesture.
*/
-public void gesture(GestureEvent e);
+void gesture(GestureEvent e);
} \ No newline at end of file
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/HelpListener.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/HelpListener.java
index fbb2b881a6..b40b6cbb30 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/HelpListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/HelpListener.java
@@ -38,5 +38,5 @@ public interface HelpListener extends SWTEventListener {
*
* @param e an event containing information about the help
*/
-public void helpRequested(HelpEvent e);
+void helpRequested(HelpEvent e);
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/KeyListener.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/KeyListener.java
index 632509f33a..7267f2a02d 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/KeyListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/KeyListener.java
@@ -39,14 +39,14 @@ public interface KeyListener extends SWTEventListener {
*
* @param e an event containing information about the key press
*/
-public void keyPressed(KeyEvent e);
+void keyPressed(KeyEvent e);
/**
* Sent when a key is released on the system keyboard.
*
* @param e an event containing information about the key release
*/
-public void keyReleased(KeyEvent e);
+void keyReleased(KeyEvent e);
/**
* Static helper method to create a <code>KeyListener</code> for the
@@ -56,7 +56,7 @@ public void keyReleased(KeyEvent e);
* @return KeyListener
* @since 3.106
*/
-public static KeyListener keyPressedAdapter(Consumer<KeyEvent> c) {
+static KeyListener keyPressedAdapter(Consumer<KeyEvent> c) {
return new KeyAdapter() {
@Override
public void keyPressed(KeyEvent e) {
@@ -73,7 +73,7 @@ public static KeyListener keyPressedAdapter(Consumer<KeyEvent> c) {
* @return KeyListener
* @since 3.106
*/
-public static KeyListener keyReleasedAdapter(Consumer<KeyEvent> c) {
+static KeyListener keyReleasedAdapter(Consumer<KeyEvent> c) {
return new KeyAdapter() {
@Override
public void keyReleased(KeyEvent e) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MenuDetectListener.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MenuDetectListener.java
index be8f5f3f2e..f2cdbcd4e4 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MenuDetectListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MenuDetectListener.java
@@ -40,5 +40,5 @@ public interface MenuDetectListener extends SWTEventListener {
*
* @param e an event containing information about the menu detect
*/
-public void menuDetected (MenuDetectEvent e);
+void menuDetected (MenuDetectEvent e);
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MenuListener.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MenuListener.java
index 15d6f24baf..4583ad2304 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MenuListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MenuListener.java
@@ -37,14 +37,14 @@ public interface MenuListener extends SWTEventListener {
*
* @param e an event containing information about the menu operation
*/
-public void menuHidden(MenuEvent e);
+void menuHidden(MenuEvent e);
/**
* Sent when a menu is shown.
*
* @param e an event containing information about the menu operation
*/
-public void menuShown(MenuEvent e);
+void menuShown(MenuEvent e);
/**
* Static helper method to create a <code>MenuListener</code> for the
@@ -54,7 +54,7 @@ public void menuShown(MenuEvent e);
* @return MenuListener
* @since 3.107
*/
-public static MenuListener menuHiddenAdapter(Consumer<MenuEvent> c) {
+static MenuListener menuHiddenAdapter(Consumer<MenuEvent> c) {
return new MenuAdapter() {
@Override
public void menuHidden(MenuEvent e) {
@@ -71,7 +71,7 @@ public static MenuListener menuHiddenAdapter(Consumer<MenuEvent> c) {
* @return MenuListener
* @since 3.107
*/
-public static MenuListener menuShownAdapter(Consumer<MenuEvent> c) {
+static MenuListener menuShownAdapter(Consumer<MenuEvent> c) {
return new MenuAdapter() {
@Override
public void menuShown(MenuEvent e) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/ModifyListener.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/ModifyListener.java
index 1ae7c58085..9cf99b7890 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/ModifyListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/ModifyListener.java
@@ -36,5 +36,5 @@ public interface ModifyListener extends SWTEventListener {
*
* @param e an event containing information about the modify
*/
-public void modifyText(ModifyEvent e);
+void modifyText(ModifyEvent e);
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MouseListener.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MouseListener.java
index 6a643eccdc..bedbb3ff4a 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MouseListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MouseListener.java
@@ -42,21 +42,21 @@ public interface MouseListener extends SWTEventListener {
*
* @see org.eclipse.swt.widgets.Display#getDoubleClickTime()
*/
-public void mouseDoubleClick(MouseEvent e);
+void mouseDoubleClick(MouseEvent e);
/**
* Sent when a mouse button is pressed.
*
* @param e an event containing information about the mouse button press
*/
-public void mouseDown(MouseEvent e);
+void mouseDown(MouseEvent e);
/**
* Sent when a mouse button is released.
*
* @param e an event containing information about the mouse button release
*/
-public void mouseUp(MouseEvent e);
+void mouseUp(MouseEvent e);
/**
@@ -68,7 +68,7 @@ public void mouseUp(MouseEvent e);
* @since 3.106
*/
-public static MouseListener mouseDoubleClickAdapter(Consumer<MouseEvent> c) {
+static MouseListener mouseDoubleClickAdapter(Consumer<MouseEvent> c) {
return new MouseAdapter() {
@Override
public void mouseDoubleClick(MouseEvent e) {
@@ -86,7 +86,7 @@ public static MouseListener mouseDoubleClickAdapter(Consumer<MouseEvent> c) {
* @since 3.106
*/
-public static MouseListener mouseDownAdapter(Consumer<MouseEvent> c) {
+static MouseListener mouseDownAdapter(Consumer<MouseEvent> c) {
return new MouseAdapter() {
@Override
public void mouseDown(MouseEvent e) {
@@ -104,7 +104,7 @@ public static MouseListener mouseDownAdapter(Consumer<MouseEvent> c) {
* @since 3.106
*/
-public static MouseListener mouseUpAdapter(Consumer<MouseEvent> c) {
+static MouseListener mouseUpAdapter(Consumer<MouseEvent> c) {
return new MouseAdapter() {
@Override
public void mouseUp(MouseEvent e) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MouseMoveListener.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MouseMoveListener.java
index 10ae092796..4073bef9e6 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MouseMoveListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MouseMoveListener.java
@@ -36,5 +36,5 @@ public interface MouseMoveListener extends SWTEventListener {
*
* @param e an event containing information about the mouse move
*/
-public void mouseMove(MouseEvent e);
+void mouseMove(MouseEvent e);
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MouseTrackListener.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MouseTrackListener.java
index 0fe8a06f9a..cc459fb37b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MouseTrackListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MouseTrackListener.java
@@ -40,7 +40,7 @@ public interface MouseTrackListener extends SWTEventListener {
*
* @param e an event containing information about the mouse enter
*/
-public void mouseEnter(MouseEvent e);
+void mouseEnter(MouseEvent e);
/**
* Sent when the mouse pointer passes out of the area of
@@ -48,7 +48,7 @@ public void mouseEnter(MouseEvent e);
*
* @param e an event containing information about the mouse exit
*/
-public void mouseExit(MouseEvent e);
+void mouseExit(MouseEvent e);
/**
* Sent when the mouse pointer hovers (that is, stops moving
@@ -57,7 +57,7 @@ public void mouseExit(MouseEvent e);
*
* @param e an event containing information about the hover
*/
-public void mouseHover(MouseEvent e);
+void mouseHover(MouseEvent e);
/**
* Static helper method to create a <code>MouseTrackListener</code> for the
@@ -67,7 +67,7 @@ public void mouseHover(MouseEvent e);
* @return MouseTrackListener
* @since 3.107
*/
-public static MouseTrackListener mouseEnterAdapter(Consumer<MouseEvent> c) {
+static MouseTrackListener mouseEnterAdapter(Consumer<MouseEvent> c) {
return new MouseTrackAdapter() {
@Override
public void mouseEnter(MouseEvent e) {
@@ -84,7 +84,7 @@ public static MouseTrackListener mouseEnterAdapter(Consumer<MouseEvent> c) {
* @return MouseTrackListener
* @since 3.107
*/
-public static MouseTrackListener mouseExitAdapter(Consumer<MouseEvent> c) {
+static MouseTrackListener mouseExitAdapter(Consumer<MouseEvent> c) {
return new MouseTrackAdapter() {
@Override
public void mouseExit(MouseEvent e) {
@@ -101,7 +101,7 @@ public static MouseTrackListener mouseExitAdapter(Consumer<MouseEvent> c) {
* @return MouseTrackListener
* @since 3.107
*/
-public static MouseTrackListener mouseHoverAdapter(Consumer<MouseEvent> c) {
+static MouseTrackListener mouseHoverAdapter(Consumer<MouseEvent> c) {
return new MouseTrackAdapter() {
@Override
public void mouseHover(MouseEvent e) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MouseWheelListener.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MouseWheelListener.java
index 78a45574be..070074ae68 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MouseWheelListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/MouseWheelListener.java
@@ -38,5 +38,5 @@ public interface MouseWheelListener extends SWTEventListener {
*
* @param e an event containing information about the mouse wheel action
*/
-public void mouseScrolled (MouseEvent e);
+void mouseScrolled (MouseEvent e);
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/PaintListener.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/PaintListener.java
index 6e8148e2cd..683190ea2e 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/PaintListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/PaintListener.java
@@ -37,5 +37,5 @@ public interface PaintListener extends SWTEventListener {
*
* @param e an event containing information about the paint
*/
-public void paintControl(PaintEvent e);
+void paintControl(PaintEvent e);
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/SegmentListener.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/SegmentListener.java
index 8d4a291532..ffff26dad5 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/SegmentListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/SegmentListener.java
@@ -35,6 +35,6 @@ public interface SegmentListener extends SWTEventListener {
* @param event the given event
* @see SegmentEvent
*/
-public void getSegments(SegmentEvent event);
+void getSegments(SegmentEvent event);
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/SelectionListener.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/SelectionListener.java
index 8ad9e4a74b..6a3eba9c7f 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/SelectionListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/SelectionListener.java
@@ -46,7 +46,7 @@ public interface SelectionListener extends SWTEventListener {
*
* @param e an event containing information about the selection
*/
-public void widgetSelected(SelectionEvent e);
+void widgetSelected(SelectionEvent e);
/**
* Sent when default selection occurs in the control.
@@ -61,7 +61,7 @@ public void widgetSelected(SelectionEvent e);
*
* @param e an event containing information about the default selection
*/
-public void widgetDefaultSelected(SelectionEvent e);
+void widgetDefaultSelected(SelectionEvent e);
@@ -74,7 +74,7 @@ public void widgetDefaultSelected(SelectionEvent e);
* @return SelectionListener
* @since 3.106
*/
-public static SelectionListener widgetSelectedAdapter(Consumer<SelectionEvent> c) {
+static SelectionListener widgetSelectedAdapter(Consumer<SelectionEvent> c) {
return new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
@@ -92,7 +92,7 @@ public static SelectionListener widgetSelectedAdapter(Consumer<SelectionEvent> c
* @return SelectionListener
* @since 3.106
*/
-public static SelectionListener widgetDefaultSelectedAdapter(Consumer<SelectionEvent> c) {
+static SelectionListener widgetDefaultSelectedAdapter(Consumer<SelectionEvent> c) {
return new SelectionAdapter() {
@Override
public void widgetDefaultSelected(SelectionEvent e) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/ShellListener.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/ShellListener.java
index e44f3adf87..1afbc9ef4f 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/ShellListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/ShellListener.java
@@ -37,35 +37,35 @@ public interface ShellListener extends SWTEventListener {
*
* @param e an event containing information about the activation
*/
-public void shellActivated(ShellEvent e);
+void shellActivated(ShellEvent e);
/**
* Sent when a shell is closed.
*
* @param e an event containing information about the close
*/
-public void shellClosed(ShellEvent e);
+void shellClosed(ShellEvent e);
/**
* Sent when a shell stops being the active window.
*
* @param e an event containing information about the deactivation
*/
-public void shellDeactivated(ShellEvent e);
+void shellDeactivated(ShellEvent e);
/**
* Sent when a shell is un-minimized.
*
* @param e an event containing information about the un-minimization
*/
-public void shellDeiconified(ShellEvent e);
+void shellDeiconified(ShellEvent e);
/**
* Sent when a shell is minimized.
*
* @param e an event containing information about the minimization
*/
-public void shellIconified(ShellEvent e);
+void shellIconified(ShellEvent e);
/**
* Static helper method to create a <code>ShellListener</code> for the
@@ -75,7 +75,7 @@ public void shellIconified(ShellEvent e);
* @return ShellListener
* @since 3.107
*/
-public static ShellListener shellActivatedAdapter(Consumer<ShellEvent> c) {
+static ShellListener shellActivatedAdapter(Consumer<ShellEvent> c) {
return new ShellAdapter() {
@Override
public void shellActivated(ShellEvent e) {
@@ -92,7 +92,7 @@ public static ShellListener shellActivatedAdapter(Consumer<ShellEvent> c) {
* @return ShellListener
* @since 3.107
*/
-public static ShellListener shellClosedAdapter(Consumer<ShellEvent> c) {
+static ShellListener shellClosedAdapter(Consumer<ShellEvent> c) {
return new ShellAdapter() {
@Override
public void shellClosed(ShellEvent e) {
@@ -109,7 +109,7 @@ public static ShellListener shellClosedAdapter(Consumer<ShellEvent> c) {
* @return ShellListener
* @since 3.107
*/
-public static ShellListener shellDeactivatedAdapter(Consumer<ShellEvent> c) {
+static ShellListener shellDeactivatedAdapter(Consumer<ShellEvent> c) {
return new ShellAdapter() {
@Override
public void shellDeactivated(ShellEvent e) {
@@ -126,7 +126,7 @@ public static ShellListener shellDeactivatedAdapter(Consumer<ShellEvent> c) {
* @return ShellListener
* @since 3.107
*/
-public static ShellListener shellDeiconifiedAdapter(Consumer<ShellEvent> c) {
+static ShellListener shellDeiconifiedAdapter(Consumer<ShellEvent> c) {
return new ShellAdapter() {
@Override
public void shellDeiconified(ShellEvent e) {
@@ -143,7 +143,7 @@ public static ShellListener shellDeiconifiedAdapter(Consumer<ShellEvent> c) {
* @return ShellListener
* @since 3.107
*/
-public static ShellListener shellIconifiedAdapter(Consumer<ShellEvent> c) {
+static ShellListener shellIconifiedAdapter(Consumer<ShellEvent> c) {
return new ShellAdapter() {
@Override
public void shellIconified(ShellEvent e) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/TouchListener.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/TouchListener.java
index da9c23a0a4..2c439eeacc 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/TouchListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/TouchListener.java
@@ -43,5 +43,5 @@ public interface TouchListener extends SWTEventListener {
*
* @param e an event containing information about the touch
*/
-public void touch(TouchEvent e);
+void touch(TouchEvent e);
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/TraverseListener.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/TraverseListener.java
index bf3c1499bf..fa2cbe7263 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/TraverseListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/TraverseListener.java
@@ -44,5 +44,5 @@ public interface TraverseListener extends SWTEventListener {
*
* @param e an event containing information about the traverse
*/
-public void keyTraversed(TraverseEvent e);
+void keyTraversed(TraverseEvent e);
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/TreeListener.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/TreeListener.java
index 5347628e23..50440d3bbb 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/TreeListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/TreeListener.java
@@ -38,14 +38,14 @@ public interface TreeListener extends SWTEventListener {
*
* @param e an event containing information about the tree operation
*/
-public void treeCollapsed(TreeEvent e);
+void treeCollapsed(TreeEvent e);
/**
* Sent when a tree branch is expanded.
*
* @param e an event containing information about the tree operation
*/
-public void treeExpanded(TreeEvent e);
+void treeExpanded(TreeEvent e);
/**
* Static helper method to create a <code>TreeListener</code> for the
@@ -55,7 +55,7 @@ public void treeExpanded(TreeEvent e);
* @return TreeListener
* @since 3.107
*/
-public static TreeListener treeCollapsedAdapter(Consumer<TreeEvent> c) {
+static TreeListener treeCollapsedAdapter(Consumer<TreeEvent> c) {
return new TreeAdapter() {
@Override
public void treeCollapsed(TreeEvent e) {
@@ -72,7 +72,7 @@ public static TreeListener treeCollapsedAdapter(Consumer<TreeEvent> c) {
* @return TreeListener
* @since 3.107
*/
-public static TreeListener treeExpandedAdapter(Consumer<TreeEvent> c) {
+static TreeListener treeExpandedAdapter(Consumer<TreeEvent> c) {
return new TreeAdapter() {
@Override
public void treeExpanded(TreeEvent e) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/VerifyListener.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/VerifyListener.java
index 2830a87201..5c891a7434 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/VerifyListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/events/VerifyListener.java
@@ -43,5 +43,5 @@ public interface VerifyListener extends SWTEventListener {
*
* @param e an event containing information about the verify
*/
-public void verifyText(VerifyEvent e);
+void verifyText(VerifyEvent e);
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/Drawable.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/Drawable.java
index e7142ca71b..0328acad0b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/Drawable.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/Drawable.java
@@ -45,7 +45,7 @@ public interface Drawable {
* @noreference This method is not intended to be referenced by clients.
*/
-public long /*int*/ internal_new_GC (GCData data);
+long /*int*/ internal_new_GC (GCData data);
/**
* Invokes platform specific functionality to dispose a GC handle.
@@ -62,7 +62,7 @@ public long /*int*/ internal_new_GC (GCData data);
*
* @noreference This method is not intended to be referenced by clients.
*/
-public void internal_dispose_GC (long /*int*/ handle, GCData data);
+void internal_dispose_GC (long /*int*/ handle, GCData data);
/**
* Returns <code>true</code> iff coordinates can be auto-scaled on this
@@ -74,7 +74,7 @@ public void internal_dispose_GC (long /*int*/ handle, GCData data);
*
* @noreference This method is not intended to be referenced by clients.
*/
-public default boolean isAutoScalable () {
+default boolean isAutoScalable () {
return true;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageData.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageData.java
index 7e3337a0bd..c3de339ecc 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageData.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageData.java
@@ -1635,7 +1635,7 @@ static int closestMatch(int depth, byte red, byte green, byte blue, int redMask,
return nearestPixel;
}
-static final ImageData convertMask(ImageData mask) {
+static ImageData convertMask(ImageData mask) {
if (mask.depth == 1) return mask;
PaletteData palette = new PaletteData(new RGB(0, 0, 0), new RGB(255,255,255));
ImageData newMask = new ImageData(mask.width, mask.height, 1, palette);
@@ -1663,7 +1663,7 @@ static final ImageData convertMask(ImageData mask) {
return newMask;
}
-static final byte[] convertPad(byte[] data, int width, int height, int depth, int pad, int newPad) {
+static byte[] convertPad(byte[] data, int width, int height, int depth, int pad, int newPad) {
if (pad == newPad) return data;
int stride = (width * depth + 7) / 8;
int bpl = (stride + (pad - 1)) / pad * pad;
@@ -3576,7 +3576,7 @@ static ImageData createGradientBand(
/*
* Fill in gradated values for a color channel
*/
-static final void buildPreciseGradientChannel(int from, int to, int steps,
+static void buildPreciseGradientChannel(int from, int to, int steps,
int bandWidth, int bandHeight, boolean vertical,
byte[] bitmapData, int dp, int bytesPerLine) {
int val = from << 16;
@@ -3597,7 +3597,7 @@ static final void buildPreciseGradientChannel(int from, int to, int steps,
/*
* Fill in dithered gradated values for a color channel
*/
-static final void buildDitheredGradientChannel(int from, int to, int steps,
+static void buildDitheredGradientChannel(int from, int to, int steps,
int bandWidth, int bandHeight, boolean vertical,
byte[] bitmapData, int dp, int bytesPerLine, int bits) {
final int mask = 0xff00 >>> bits;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageDataProvider.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageDataProvider.java
index 965858893a..b0ec0c606a 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageDataProvider.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageDataProvider.java
@@ -38,6 +38,6 @@ public interface ImageDataProvider {
* and no image is available for the given zoom level.
* @since 3.104
*/
- public ImageData getImageData (int zoom);
+ ImageData getImageData (int zoom);
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageFileNameProvider.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageFileNameProvider.java
index 93c96464bf..01d7a6b4a0 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageFileNameProvider.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageFileNameProvider.java
@@ -38,6 +38,6 @@ public interface ImageFileNameProvider {
* zoom level.
* @since 3.104
*/
- public String getImagePath (int zoom);
+ String getImagePath (int zoom);
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageLoaderListener.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageLoaderListener.java
index ba4723aea9..857cb7b400 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageLoaderListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageLoaderListener.java
@@ -40,6 +40,6 @@ public interface ImageLoaderListener extends SWTEventListener {
*
* @param e an event containing information about the image loading operation
*/
-public void imageDataLoaded(ImageLoaderEvent e);
+void imageDataLoaded(ImageLoaderEvent e);
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/WinICOFileFormat.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/WinICOFileFormat.java
index 5c57629cf7..acc411474c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/WinICOFileFormat.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/WinICOFileFormat.java
@@ -25,7 +25,7 @@ byte[] bitInvertData(byte[] data, int startIndex, int endIndex) {
return data;
}
-static final byte[] convertPad(byte[] data, int width, int height, int depth, int pad, int newPad) {
+static byte[] convertPad(byte[] data, int width, int height, int depth, int pad, int newPad) {
if (pad == newPad) return data;
int stride = (width * depth + 7) / 8;
int bpl = (stride + (pad - 1)) / pad * pad;

Back to the top