# HG changeset patch # User serb # Date 1535091136 25200 # Node ID 57fa2c1c98d455557d89fbe150fc94d5f32b54e5 # Parent 4b492ccc0b7175a07ca1cc6b36e69abb99b08540 8209340: The code which avoids synthetic accessors has become outdated Reviewed-by: psadhukhan, kaddepalli diff -r 4b492ccc0b71 -r 57fa2c1c98d4 src/java.desktop/macosx/classes/sun/font/CStrike.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 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) { diff -r 4b492ccc0b71 -r 57fa2c1c98d4 src/java.desktop/macosx/classes/sun/lwawt/LWButtonPeer.java --- 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(); diff -r 4b492ccc0b71 -r 57fa2c1c98d4 src/java.desktop/macosx/classes/sun/lwawt/LWChoicePeer.java --- 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 { - // 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(); diff -r 4b492ccc0b71 -r 57fa2c1c98d4 src/java.desktop/macosx/classes/sun/lwawt/LWComponentPeer.java --- 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; diff -r 4b492ccc0b71 -r 57fa2c1c98d4 src/java.desktop/macosx/classes/sun/lwawt/LWTextAreaPeer.java --- 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); diff -r 4b492ccc0b71 -r 57fa2c1c98d4 src/java.desktop/macosx/classes/sun/lwawt/LWTextFieldPeer.java --- 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); diff -r 4b492ccc0b71 -r 57fa2c1c98d4 src/java.desktop/share/classes/javax/swing/RepaintManager.java --- 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(); }