mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8325109: Sort method modifiers in canonical order
Reviewed-by: aivanov, rriggs, darcy, prappo
This commit is contained in:
parent
a3a2b1fbbf
commit
18e24d0619
39 changed files with 61 additions and 61 deletions
|
@ -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 {
|
||||
|
|
|
@ -424,7 +424,7 @@ class FormatItem {
|
|||
}
|
||||
}
|
||||
|
||||
static abstract sealed class FormatItemModifier implements FormatConcatItem
|
||||
abstract static sealed class FormatItemModifier implements FormatConcatItem
|
||||
permits FormatItemFillLeft,
|
||||
FormatItemFillRight
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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:
|
||||
*
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue