8325109: Sort method modifiers in canonical order

Reviewed-by: aivanov, rriggs, darcy, prappo
This commit is contained in:
Magnus Ihse Bursie 2024-02-07 15:50:40 +00:00
parent a3a2b1fbbf
commit 18e24d0619
39 changed files with 61 additions and 61 deletions

View file

@ -272,7 +272,7 @@ class ThreadBuilders {
/**
* Base ThreadFactory implementation.
*/
private static abstract class BaseThreadFactory implements ThreadFactory {
private abstract static class BaseThreadFactory implements ThreadFactory {
private static final VarHandle COUNT;
static {
try {

View file

@ -424,7 +424,7 @@ class FormatItem {
}
}
static abstract sealed class FormatItemModifier implements FormatConcatItem
abstract static sealed class FormatItemModifier implements FormatConcatItem
permits FormatItemFillLeft,
FormatItemFillRight
{

View file

@ -1624,7 +1624,7 @@ public abstract class ForkJoinTask<V> implements Future<V>, Serializable {
* been cancelled on entry and might not otherwise be cancelled by
* others.
*/
static abstract class InterruptibleTask<T> extends ForkJoinTask<T>
abstract static class InterruptibleTask<T> extends ForkJoinTask<T>
implements RunnableFuture<T> {
transient volatile Thread runner;
abstract T compute() throws Exception;

View file

@ -114,7 +114,7 @@ public abstract sealed class AbstractInstruction
@Override
public abstract void writeTo(DirectCodeBuilder writer);
public static abstract sealed class BoundInstruction extends AbstractInstruction {
public abstract static sealed class BoundInstruction extends AbstractInstruction {
final CodeImpl code;
final int pos;
@ -760,7 +760,7 @@ public abstract sealed class AbstractInstruction
}
public static abstract sealed class UnboundInstruction extends AbstractInstruction {
public abstract static sealed class UnboundInstruction extends AbstractInstruction {
UnboundInstruction(Opcode op) {
super(op, op.sizeIfFixed());

View file

@ -471,7 +471,7 @@ public abstract sealed class AbstractPoolEntry {
}
}
static abstract sealed class AbstractRefEntry<T extends PoolEntry> extends AbstractPoolEntry {
abstract static sealed class AbstractRefEntry<T extends PoolEntry> extends AbstractPoolEntry {
protected final T ref1;
public AbstractRefEntry(ConstantPool constantPool, int tag, int index, T ref1) {
@ -494,7 +494,7 @@ public abstract sealed class AbstractPoolEntry {
}
}
static abstract sealed class AbstractRefsEntry<T extends PoolEntry, U extends PoolEntry>
abstract static sealed class AbstractRefsEntry<T extends PoolEntry, U extends PoolEntry>
extends AbstractPoolEntry {
protected final T ref1;
protected final U ref2;
@ -525,7 +525,7 @@ public abstract sealed class AbstractPoolEntry {
}
}
static abstract sealed class AbstractNamedEntry extends AbstractRefEntry<Utf8EntryImpl> {
abstract static sealed class AbstractNamedEntry extends AbstractRefEntry<Utf8EntryImpl> {
public AbstractNamedEntry(ConstantPool constantPool, int tag, int index, Utf8EntryImpl ref1) {
super(constantPool, tag, index, ref1);
@ -697,7 +697,7 @@ public abstract sealed class AbstractPoolEntry {
}
}
public static abstract sealed class AbstractMemberRefEntry
public abstract static sealed class AbstractMemberRefEntry
extends AbstractRefsEntry<ClassEntryImpl, NameAndTypeEntryImpl>
implements MemberRefEntry {
@ -773,7 +773,7 @@ public abstract sealed class AbstractPoolEntry {
}
}
public static abstract sealed class AbstractDynamicConstantPoolEntry extends AbstractPoolEntry {
public abstract static sealed class AbstractDynamicConstantPoolEntry extends AbstractPoolEntry {
private final int bsmIndex;
private BootstrapMethodEntryImpl bootstrapMethod;
@ -1043,7 +1043,7 @@ public abstract sealed class AbstractPoolEntry {
}
static abstract sealed class PrimitiveEntry<T extends ConstantDesc>
abstract static sealed class PrimitiveEntry<T extends ConstantDesc>
extends AbstractPoolEntry {
protected final T val;

View file

@ -154,7 +154,7 @@ public abstract sealed class AbstractPseudoInstruction
}
private static abstract sealed class AbstractLocalPseudo extends AbstractPseudoInstruction {
private abstract static sealed class AbstractLocalPseudo extends AbstractPseudoInstruction {
protected final int slot;
protected final Utf8Entry name;
protected final Utf8Entry descriptor;

View file

@ -935,7 +935,7 @@ public abstract sealed class BoundAttribute<T extends Attribute<T>>
}
}
public static abstract sealed class BoundCodeAttribute
public abstract static sealed class BoundCodeAttribute
extends BoundAttribute<CodeAttribute>
implements CodeAttribute
permits CodeImpl {

View file

@ -897,7 +897,7 @@ public abstract sealed class UnboundAttribute<T extends Attribute<T>>
}
}
public static abstract non-sealed class AdHocAttribute<T extends Attribute<T>>
public abstract static non-sealed class AdHocAttribute<T extends Attribute<T>>
extends UnboundAttribute<T> {
public AdHocAttribute(AttributeMapper<T> mapper) {

View file

@ -30,7 +30,7 @@ package jdk.internal.event;
*/
public final class SecurityProviderServiceEvent extends Event {
private final static SecurityProviderServiceEvent EVENT = new SecurityProviderServiceEvent();
private static final SecurityProviderServiceEvent EVENT = new SecurityProviderServiceEvent();
/**
* Returns {@code true} if event is enabled, {@code false} otherwise.

View file

@ -28,7 +28,7 @@ package jdk.internal.event;
* Event recording that a virtual thread has terminated.
*/
public class VirtualThreadEndEvent extends Event {
private final static VirtualThreadEndEvent EVENT = new VirtualThreadEndEvent();
private static final VirtualThreadEndEvent EVENT = new VirtualThreadEndEvent();
/**
* Returns {@code true} if event is enabled, {@code false} otherwise.

View file

@ -28,7 +28,7 @@ package jdk.internal.event;
* Event recording that a virtual thread has been started.
*/
public class VirtualThreadStartEvent extends Event {
private final static VirtualThreadStartEvent EVENT = new VirtualThreadStartEvent();
private static final VirtualThreadStartEvent EVENT = new VirtualThreadStartEvent();
/**
* Returns {@code true} if event is enabled, {@code false} otherwise.

View file

@ -35,7 +35,7 @@ import static jdk.internal.math.MathUtils.*;
/**
* This class exposes a method to render a {@code float} as a string.
*/
final public class FloatToDecimal {
public final class FloatToDecimal {
/*
* For full details about this code see the following references:
*

View file

@ -296,10 +296,10 @@ public class Continuation {
}
@IntrinsicCandidate
private native static int doYield();
private static native int doYield();
@IntrinsicCandidate
private native static void enterSpecial(Continuation c, boolean isContinue, boolean isVirtualThread);
private static native void enterSpecial(Continuation c, boolean isContinue, boolean isVirtualThread);
@Hidden
@ -448,7 +448,7 @@ public class Continuation {
return res != 0;
}
static private native int isPinned0(ContinuationScope scope);
private static native int isPinned0(ContinuationScope scope);
private boolean fence() {
U.storeFence(); // needed to prevent certain transformations by the compiler

View file

@ -208,7 +208,7 @@ public class ThreadContainers {
* Root container that "contains" all platform threads not started in a container.
* It may include all virtual threads started directly with the Thread API.
*/
private static abstract class RootContainer extends ThreadContainer {
private abstract static class RootContainer extends ThreadContainer {
protected RootContainer() {
super(true);
}

View file

@ -882,8 +882,8 @@ public class IPAddressUtil {
private static final int[] SUPPORTED_RADIXES = new int[]{HEXADECIMAL, OCTAL, DECIMAL};
// BSD parser's return values
private final static long CANT_PARSE_IN_RADIX = -1L;
private final static long TERMINAL_PARSE_ERROR = -2L;
private static final long CANT_PARSE_IN_RADIX = -1L;
private static final long TERMINAL_PARSE_ERROR = -2L;
private static final String ALLOW_AMBIGUOUS_IPADDRESS_LITERALS_SP = "jdk.net.allowAmbiguousIPAddressLiterals";
private static final boolean ALLOW_AMBIGUOUS_IPADDRESS_LITERALS_SP_VALUE = Boolean.valueOf(

View file

@ -205,7 +205,7 @@ public sealed class IntegerPolynomialModBinP extends IntegerPolynomial {
/**
* The field of integers modulo the order of the Curve25519 subgroup
*/
public final static class Curve25519OrderField extends IntegerPolynomialModBinP {
public static final class Curve25519OrderField extends IntegerPolynomialModBinP {
public Curve25519OrderField() {
super(26, 10, 252,
@ -216,7 +216,7 @@ public sealed class IntegerPolynomialModBinP extends IntegerPolynomial {
/**
* The field of integers modulo the order of the Curve448 subgroup
*/
public final static class Curve448OrderField extends IntegerPolynomialModBinP {
public static final class Curve448OrderField extends IntegerPolynomialModBinP {
public Curve448OrderField() {
super(28, 16, 446,