mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8209340: The code which avoids synthetic accessors has become outdated
Reviewed-by: psadhukhan, kaddepalli
This commit is contained in:
parent
ca5903367f
commit
05ed80075a
7 changed files with 7 additions and 49 deletions
|
@ -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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -506,12 +506,6 @@ public final class CStrike extends PhysicalStrike {
|
||||||
private SparseBitShiftingTwoLayerArray secondLayerCache;
|
private SparseBitShiftingTwoLayerArray secondLayerCache;
|
||||||
private HashMap<Integer, Float> generalCache;
|
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) {
|
public synchronized float get(final int index) {
|
||||||
if (index < 0) {
|
if (index < 0) {
|
||||||
if (-index < SECOND_LAYER_SIZE) {
|
if (-index < SECOND_LAYER_SIZE) {
|
||||||
|
|
|
@ -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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -81,12 +81,6 @@ final class LWButtonPeer extends LWComponentPeer<Button, JButton>
|
||||||
@SuppressWarnings("serial")// Safe: outer class is non-serializable.
|
@SuppressWarnings("serial")// Safe: outer class is non-serializable.
|
||||||
private final class JButtonDelegate extends JButton {
|
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
|
@Override
|
||||||
public boolean hasFocus() {
|
public boolean hasFocus() {
|
||||||
return getTarget().hasFocus();
|
return getTarget().hasFocus();
|
||||||
|
|
|
@ -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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -135,12 +135,6 @@ final class LWChoicePeer extends LWComponentPeer<Choice, JComboBox<String>>
|
||||||
@SuppressWarnings("serial")// Safe: outer class is non-serializable.
|
@SuppressWarnings("serial")// Safe: outer class is non-serializable.
|
||||||
private final class JComboBoxDelegate extends JComboBox<String> {
|
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
|
@Override
|
||||||
public boolean hasFocus() {
|
public boolean hasFocus() {
|
||||||
return getTarget().hasFocus();
|
return getTarget().hasFocus();
|
||||||
|
|
|
@ -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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -159,12 +159,6 @@ public abstract class LWComponentPeer<T extends Component, D extends JComponent>
|
||||||
enableEvents(0xFFFFFFFF);
|
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
|
@Override
|
||||||
public boolean isLightweight() {
|
public boolean isLightweight() {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -219,12 +219,6 @@ final class LWTextAreaPeer
|
||||||
|
|
||||||
private final class JTextAreaDelegate extends JTextArea {
|
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
|
@Override
|
||||||
public void replaceSelection(String content) {
|
public void replaceSelection(String content) {
|
||||||
getDocument().removeDocumentListener(LWTextAreaPeer.this);
|
getDocument().removeDocumentListener(LWTextAreaPeer.this);
|
||||||
|
|
|
@ -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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -122,12 +122,6 @@ final class LWTextFieldPeer
|
||||||
@SuppressWarnings("serial")// Safe: outer class is non-serializable.
|
@SuppressWarnings("serial")// Safe: outer class is non-serializable.
|
||||||
private final class JPasswordFieldDelegate extends JPasswordField {
|
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
|
@Override
|
||||||
public void replaceSelection(String content) {
|
public void replaceSelection(String content) {
|
||||||
getDocument().removeDocumentListener(LWTextFieldPeer.this);
|
getDocument().removeDocumentListener(LWTextFieldPeer.this);
|
||||||
|
|
|
@ -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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1814,12 +1814,6 @@ public class RepaintManager
|
||||||
*/
|
*/
|
||||||
private static final class DisplayChangedHandler implements
|
private static final class DisplayChangedHandler implements
|
||||||
DisplayChangedListener {
|
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() {
|
public void displayChanged() {
|
||||||
scheduleDisplayChanges();
|
scheduleDisplayChanges();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue