8209340: The code which avoids synthetic accessors has become outdated
authorserb
Thu, 23 Aug 2018 23:12:16 -0700
changeset 51911 57fa2c1c98d4
parent 51910 4b492ccc0b71
child 51912 4b2c1e154664
8209340: The code which avoids synthetic accessors has become outdated Reviewed-by: psadhukhan, kaddepalli
src/java.desktop/macosx/classes/sun/font/CStrike.java
src/java.desktop/macosx/classes/sun/lwawt/LWButtonPeer.java
src/java.desktop/macosx/classes/sun/lwawt/LWChoicePeer.java
src/java.desktop/macosx/classes/sun/lwawt/LWComponentPeer.java
src/java.desktop/macosx/classes/sun/lwawt/LWTextAreaPeer.java
src/java.desktop/macosx/classes/sun/lwawt/LWTextFieldPeer.java
src/java.desktop/share/classes/javax/swing/RepaintManager.java
--- a/src/java.desktop/macosx/classes/sun/font/CStrike.java	Fri Aug 17 09:31:13 2018 +0100
+++ b/src/java.desktop/macosx/classes/sun/font/CStrike.java	Thu Aug 23 23:12:16 2018 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -506,12 +506,6 @@
         private SparseBitShiftingTwoLayerArray secondLayerCache;
         private HashMap<Integer, Float> generalCache;
 
-        // Empty non private constructor was added because access to this
-        // class shouldn't be emulated by a synthetic accessor method.
-        GlyphAdvanceCache() {
-            super();
-        }
-
         public synchronized float get(final int index) {
             if (index < 0) {
                 if (-index < SECOND_LAYER_SIZE) {
--- a/src/java.desktop/macosx/classes/sun/lwawt/LWButtonPeer.java	Fri Aug 17 09:31:13 2018 +0100
+++ b/src/java.desktop/macosx/classes/sun/lwawt/LWButtonPeer.java	Thu Aug 23 23:12:16 2018 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -81,12 +81,6 @@
     @SuppressWarnings("serial")// Safe: outer class is non-serializable.
     private final class JButtonDelegate extends JButton {
 
-        // Empty non private constructor was added because access to this
-        // class shouldn't be emulated by a synthetic accessor method.
-        JButtonDelegate() {
-            super();
-        }
-
         @Override
         public boolean hasFocus() {
             return getTarget().hasFocus();
--- a/src/java.desktop/macosx/classes/sun/lwawt/LWChoicePeer.java	Fri Aug 17 09:31:13 2018 +0100
+++ b/src/java.desktop/macosx/classes/sun/lwawt/LWChoicePeer.java	Thu Aug 23 23:12:16 2018 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -135,12 +135,6 @@
     @SuppressWarnings("serial")// Safe: outer class is non-serializable.
     private final class JComboBoxDelegate extends JComboBox<String> {
 
-        // Empty non private constructor was added because access to this
-        // class shouldn't be emulated by a synthetic accessor method.
-        JComboBoxDelegate() {
-            super();
-        }
-
         @Override
         public boolean hasFocus() {
             return getTarget().hasFocus();
--- a/src/java.desktop/macosx/classes/sun/lwawt/LWComponentPeer.java	Fri Aug 17 09:31:13 2018 +0100
+++ b/src/java.desktop/macosx/classes/sun/lwawt/LWComponentPeer.java	Thu Aug 23 23:12:16 2018 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -159,12 +159,6 @@
             enableEvents(0xFFFFFFFF);
         }
 
-        // Empty non private constructor was added because access to this
-        // class shouldn't be emulated by a synthetic accessor method.
-        DelegateContainer() {
-            super();
-        }
-
         @Override
         public boolean isLightweight() {
             return false;
--- a/src/java.desktop/macosx/classes/sun/lwawt/LWTextAreaPeer.java	Fri Aug 17 09:31:13 2018 +0100
+++ b/src/java.desktop/macosx/classes/sun/lwawt/LWTextAreaPeer.java	Thu Aug 23 23:12:16 2018 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -219,12 +219,6 @@
 
         private final class JTextAreaDelegate extends JTextArea {
 
-            // Empty non private constructor was added because access to this
-            // class shouldn't be emulated by a synthetic accessor method.
-            JTextAreaDelegate() {
-                super();
-            }
-
             @Override
             public void replaceSelection(String content) {
                 getDocument().removeDocumentListener(LWTextAreaPeer.this);
--- a/src/java.desktop/macosx/classes/sun/lwawt/LWTextFieldPeer.java	Fri Aug 17 09:31:13 2018 +0100
+++ b/src/java.desktop/macosx/classes/sun/lwawt/LWTextFieldPeer.java	Thu Aug 23 23:12:16 2018 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -122,12 +122,6 @@
     @SuppressWarnings("serial")// Safe: outer class is non-serializable.
     private final class JPasswordFieldDelegate extends JPasswordField {
 
-        // Empty non private constructor was added because access to this
-        // class shouldn't be emulated by a synthetic accessor method.
-        JPasswordFieldDelegate() {
-            super();
-        }
-
         @Override
         public void replaceSelection(String content) {
             getDocument().removeDocumentListener(LWTextFieldPeer.this);
--- a/src/java.desktop/share/classes/javax/swing/RepaintManager.java	Fri Aug 17 09:31:13 2018 +0100
+++ b/src/java.desktop/share/classes/javax/swing/RepaintManager.java	Thu Aug 23 23:12:16 2018 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -1814,12 +1814,6 @@
      */
     private static final class DisplayChangedHandler implements
                                              DisplayChangedListener {
-        // Empty non private constructor was added because access to this
-        // class shouldn't be generated by the compiler using synthetic
-        // accessor method
-        DisplayChangedHandler() {
-        }
-
         public void displayChanged() {
             scheduleDisplayChanges();
         }