changeset 12792:dfc9bce56672

8137059: Run blessed-modifier-order script on client demos and misc. sources Reviewed-by: jgodinez, serb
author prr
date Thu, 24 Sep 2015 10:11:46 -0700
parents 50158fc3f602
children d00ef4b0a33b
files src/demo/share/applets/MoleculeViewer/XYZApp.java src/demo/share/java2d/J2DBench/src/j2dbench/tests/ImageTests.java src/demo/share/java2d/J2DBench/src/j2dbench/tests/PixelTests.java src/demo/share/java2d/J2DBench/src/j2dbench/tests/iio/InputTests.java src/demo/share/java2d/J2DBench/src/j2dbench/tests/iio/OutputTests.java src/demo/share/java2d/J2DBench/src/j2dbench/tests/text/TextMeasureTests.java src/demo/share/jfc/FileChooserDemo/FileChooserDemo.java src/demo/share/jfc/Notepad/Notepad.java src/java.datatransfer/share/classes/java/awt/datatransfer/DataFlavor.java
diffstat 9 files changed, 24 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- a/src/demo/share/applets/MoleculeViewer/XYZApp.java	Wed Sep 23 14:09:36 2015 -0700
+++ b/src/demo/share/applets/MoleculeViewer/XYZApp.java	Thu Sep 24 10:11:46 2015 -0700
@@ -504,11 +504,11 @@
 
     private static Applet applet;
     private static byte[] data;
-    private final static int R = 40;
-    private final static int hx = 15;
-    private final static int hy = 15;
-    private final static int bgGrey = 192;
-    private final static int nBalls = 16;
+    private static final int R = 40;
+    private static final int hx = 15;
+    private static final int hy = 15;
+    private static final int bgGrey = 192;
+    private static final int nBalls = 16;
     private static int maxr;
     private int Rl;
     private int Gl;
--- a/src/demo/share/java2d/J2DBench/src/j2dbench/tests/ImageTests.java	Wed Sep 23 14:09:36 2015 -0700
+++ b/src/demo/share/java2d/J2DBench/src/j2dbench/tests/ImageTests.java	Thu Sep 24 10:11:46 2015 -0700
@@ -771,7 +771,7 @@
         }
     }
 
-    private static abstract class ImageOpTests extends ImageTests {
+    private abstract static class ImageOpTests extends ImageTests {
         ImageOpTests(Group parent, String nodeName, String desc) {
             super(parent, nodeName, desc,
                   new Modifier.Filter() {
--- a/src/demo/share/java2d/J2DBench/src/j2dbench/tests/PixelTests.java	Wed Sep 23 14:09:36 2015 -0700
+++ b/src/demo/share/java2d/J2DBench/src/j2dbench/tests/PixelTests.java	Thu Sep 24 10:11:46 2015 -0700
@@ -245,7 +245,7 @@
         }
     }
 
-    public static abstract class BufImgTest extends PixelTests {
+    public abstract static class BufImgTest extends PixelTests {
         public BufImgTest(String nodeName, String description) {
             super(bufimgtestroot, nodeName, description);
         }
@@ -281,7 +281,7 @@
         }
     }
 
-    public static abstract class RasTest extends PixelTests {
+    public abstract static class RasTest extends PixelTests {
         public RasTest(String nodeName, String description) {
             super(rastertestroot, nodeName, description);
         }
@@ -355,7 +355,7 @@
         }
     }
 
-    public static abstract class DataBufTest extends PixelTests {
+    public abstract static class DataBufTest extends PixelTests {
         public DataBufTest(String nodeName, String description) {
             super(dbtestroot, nodeName, description);
         }
--- a/src/demo/share/java2d/J2DBench/src/j2dbench/tests/iio/InputTests.java	Wed Sep 23 14:09:36 2015 -0700
+++ b/src/demo/share/java2d/J2DBench/src/j2dbench/tests/iio/InputTests.java	Thu Sep 24 10:11:46 2015 -0700
@@ -161,7 +161,7 @@
         }
     }
 
-    protected static abstract class Context {
+    protected abstract static class Context {
         int size;
         Object input;
         int inputType;
--- a/src/demo/share/java2d/J2DBench/src/j2dbench/tests/iio/OutputTests.java	Wed Sep 23 14:09:36 2015 -0700
+++ b/src/demo/share/java2d/J2DBench/src/j2dbench/tests/iio/OutputTests.java	Thu Sep 24 10:11:46 2015 -0700
@@ -156,7 +156,7 @@
         }
     }
 
-    protected static abstract class Context {
+    protected abstract static class Context {
         int size;
         Object output;
         int outputType;
--- a/src/demo/share/java2d/J2DBench/src/j2dbench/tests/text/TextMeasureTests.java	Wed Sep 23 14:09:36 2015 -0700
+++ b/src/demo/share/java2d/J2DBench/src/j2dbench/tests/text/TextMeasureTests.java	Thu Sep 24 10:11:46 2015 -0700
@@ -232,7 +232,7 @@
         }
     }
 
-    public static abstract class GVMeasureTest extends TextMeasureTests {
+    public abstract static class GVMeasureTest extends TextMeasureTests {
         protected GVMeasureTest(Group parent, String nodeName, String description) {
             super(parent, nodeName, description);
         }
@@ -431,7 +431,7 @@
         }
     }
 
-    public static abstract class TLMeasureTest extends TextMeasureTests {
+    public abstract static class TLMeasureTest extends TextMeasureTests {
         protected TLMeasureTest(Group parent, String nodeName, String description) {
             super(parent, nodeName, description);
         }
@@ -506,7 +506,7 @@
         }
     }
 
-    public static abstract class TLExtendedMeasureTest extends TLMeasureTest {
+    public abstract static class TLExtendedMeasureTest extends TLMeasureTest {
         protected TLExtendedMeasureTest(Group parent, String nodeName, String description) {
             super(parent, nodeName, description);
         }
--- a/src/demo/share/jfc/FileChooserDemo/FileChooserDemo.java	Wed Sep 23 14:09:36 2015 -0700
+++ b/src/demo/share/jfc/FileChooserDemo/FileChooserDemo.java	Thu Sep 24 10:11:46 2015 -0700
@@ -143,11 +143,11 @@
     private JTextField customField;
     private final ExampleFileView fileView;
     private final ExampleFileSystemView fileSystemView;
-    private final static Dimension hpad10 = new Dimension(10, 1);
-    private final static Dimension vpad20 = new Dimension(1, 20);
-    private final static Dimension vpad7 = new Dimension(1, 7);
-    private final static Dimension vpad4 = new Dimension(1, 4);
-    private final static Insets insets = new Insets(5, 10, 0, 10);
+    private static final Dimension hpad10 = new Dimension(10, 1);
+    private static final Dimension vpad20 = new Dimension(1, 20);
+    private static final Dimension vpad7 = new Dimension(1, 7);
+    private static final Dimension vpad4 = new Dimension(1, 4);
+    private static final Insets insets = new Insets(5, 10, 0, 10);
     private final FilePreviewer previewer;
     private final JFileChooser chooser;
 
--- a/src/demo/share/jfc/Notepad/Notepad.java	Wed Sep 23 14:09:36 2015 -0700
+++ b/src/demo/share/jfc/Notepad/Notepad.java	Thu Sep 24 10:11:46 2015 -0700
@@ -64,7 +64,7 @@
 
     protected static Properties properties;
     private static ResourceBundle resources;
-    private final static String EXIT_AFTER_PAINT = "-exit";
+    private static final String EXIT_AFTER_PAINT = "-exit";
     private static boolean exitAfterFirstPaint;
 
     private static final String[] MENUBAR_KEYS = {"file", "edit", "debug"};
--- a/src/java.datatransfer/share/classes/java/awt/datatransfer/DataFlavor.java	Wed Sep 23 14:09:36 2015 -0700
+++ b/src/java.datatransfer/share/classes/java/awt/datatransfer/DataFlavor.java	Thu Sep 24 10:11:46 2015 -0700
@@ -127,7 +127,7 @@
      * @return the class loaded
      * @exception ClassNotFoundException if class is not found
      */
-    protected final static Class<?> tryToLoadClass(String className,
+    protected static final Class<?> tryToLoadClass(String className,
                                                    ClassLoader fallback)
         throws ClassNotFoundException
     {
@@ -163,7 +163,7 @@
     /*
      * private initializer
      */
-    static private DataFlavor createConstant(Class<?> rc, String prn) {
+    private static DataFlavor createConstant(Class<?> rc, String prn) {
         try {
             return new DataFlavor(rc, prn);
         } catch (Exception e) {
@@ -174,7 +174,7 @@
     /*
      * private initializer
      */
-    static private DataFlavor createConstant(String mt, String prn) {
+    private static DataFlavor createConstant(String mt, String prn) {
         try {
             return new DataFlavor(mt, prn);
         } catch (Exception e) {
@@ -185,7 +185,7 @@
     /*
      * private initializer
      */
-    static private DataFlavor initHtmlDataFlavor(String htmlFlavorType) {
+    private static DataFlavor initHtmlDataFlavor(String htmlFlavorType) {
         try {
             return new DataFlavor ("text/html; class=java.lang.String;document=" +
                                        htmlFlavorType + ";charset=Unicode");