8263892: More modifier order fixes in java.base

Reviewed-by: naoto, iris, redestad
This commit is contained in:
Alex Blewitt 2021-03-19 21:06:24 +00:00 committed by Claes Redestad
parent 80d3ea0261
commit 77ebc11038
5 changed files with 19 additions and 19 deletions

View File

@ -301,7 +301,7 @@ abstract class BoundMethodHandle extends MethodHandle {
static final class SpeciesData static final class SpeciesData
extends ClassSpecializer<BoundMethodHandle, String, SpeciesData>.SpeciesData { extends ClassSpecializer<BoundMethodHandle, String, SpeciesData>.SpeciesData {
// This array is filled in lazily, as new species come into being over time. // This array is filled in lazily, as new species come into being over time.
@Stable final private SpeciesData[] extensions = new SpeciesData[ARG_TYPE_LIMIT]; @Stable private final SpeciesData[] extensions = new SpeciesData[ARG_TYPE_LIMIT];
public SpeciesData(Specializer outer, String key) { public SpeciesData(Specializer outer, String key) {
outer.super(key); outer.super(key);

View File

@ -46,7 +46,7 @@ import java.util.function.Consumer;
* blocking mode of this channel as well as its current set of selection keys. * blocking mode of this channel as well as its current set of selection keys.
* It performs all of the synchronization required to implement the {@link * It performs all of the synchronization required to implement the {@link
* java.nio.channels.SelectableChannel} specification. Implementations of the * java.nio.channels.SelectableChannel} specification. Implementations of the
* abstract protected methods defined in this class need not synchronize * protected abstract methods defined in this class need not synchronize
* against other threads that might be engaged in the same operations. </p> * against other threads that might be engaged in the same operations. </p>
* *
* *

View File

@ -942,13 +942,13 @@ public final class Currency implements Serializable {
*/ */
private static class SpecialCaseEntry { private static class SpecialCaseEntry {
final private long cutOverTime; private final long cutOverTime;
final private String oldCurrency; private final String oldCurrency;
final private String newCurrency; private final String newCurrency;
final private int oldCurrencyFraction; private final int oldCurrencyFraction;
final private int newCurrencyFraction; private final int newCurrencyFraction;
final private int oldCurrencyNumericCode; private final int oldCurrencyNumericCode;
final private int newCurrencyNumericCode; private final int newCurrencyNumericCode;
private SpecialCaseEntry(long cutOverTime, String oldCurrency, String newCurrency, private SpecialCaseEntry(long cutOverTime, String oldCurrency, String newCurrency,
int oldCurrencyFraction, int newCurrencyFraction, int oldCurrencyFraction, int newCurrencyFraction,
@ -1041,9 +1041,9 @@ public final class Currency implements Serializable {
*/ */
private static class OtherCurrencyEntry { private static class OtherCurrencyEntry {
final private String currencyCode; private final String currencyCode;
final private int fraction; private final int fraction;
final private int numericCode; private final int numericCode;
private OtherCurrencyEntry(String currencyCode, int fraction, private OtherCurrencyEntry(String currencyCode, int fraction,
int numericCode) { int numericCode) {
@ -1078,11 +1078,11 @@ public final class Currency implements Serializable {
* - date: cutover date * - date: cutover date
*/ */
private static class CurrencyProperty { private static class CurrencyProperty {
final private String country; private final String country;
final private String currencyCode; private final String currencyCode;
final private int fraction; private final int fraction;
final private int numericCode; private final int numericCode;
final private String date; private final String date;
private CurrencyProperty(String country, String currencyCode, private CurrencyProperty(String country, String currencyCode,
int fraction, int numericCode, String date) { int fraction, int numericCode, String date) {

View File

@ -256,7 +256,7 @@ public final class TraceSignatureVisitor extends SignatureVisitor {
@Override @Override
public void visitClassType(final String name) { public void visitClassType(final String name) {
if ("java/lang/Object".equals(name)) { if ("java/lang/Object".equals(name)) {
// 'Map<java.lang.Object,java.util.List>' or 'abstract public V get(Object key);' should have // 'Map<java.lang.Object,java.util.List>' or 'public abstract V get(Object key);' should have
// Object 'but java.lang.String extends java.lang.Object' is unnecessary. // Object 'but java.lang.String extends java.lang.Object' is unnecessary.
boolean needObjectClass = argumentStack % 2 != 0 || parameterTypeVisited; boolean needObjectClass = argumentStack % 2 != 0 || parameterTypeVisited;
if (needObjectClass) { if (needObjectClass) {

View File

@ -170,7 +170,7 @@ public class DerValue {
private final boolean allowBER; private final boolean allowBER;
// Unsafe. Legacy. Never null. // Unsafe. Legacy. Never null.
final public DerInputStream data; public final DerInputStream data;
/* /*
* These values are the high order bits for the other kinds of tags. * These values are the high order bits for the other kinds of tags.