Order modifiers to align with JLS

This commit also applies Checkstyle ModifierOrder to enforce it.

See gh-31368
This commit is contained in:
Johnny Lim
2023-10-05 21:52:29 +09:00
committed by Stéphane Nicoll
parent f60791a8e2
commit 919faa2ce2
108 changed files with 175 additions and 172 deletions

View File

@@ -64,7 +64,7 @@ public final class RuntimeHintsAgent {
return loaded;
}
private final static class ParsedArguments {
private static final class ParsedArguments {
List<String> instrumentedPackages;

View File

@@ -47,7 +47,7 @@ public final class RuntimeHintsRecorder {
* @param action the block of code we want to record invocations from
* @return the recorded invocations
*/
public synchronized static RuntimeHintsInvocations record(Runnable action) {
public static synchronized RuntimeHintsInvocations record(Runnable action) {
Assert.notNull(action, "Runnable action must not be null");
Assert.state(RuntimeHintsAgent.isLoaded(), "RuntimeHintsAgent must be loaded in the current JVM");
RuntimeHintsRecorder recorder = new RuntimeHintsRecorder();

View File

@@ -30,7 +30,7 @@ import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException
*/
class ClassFileTests {
private final static byte[] TEST_CONTENT = new byte[]{'a'};
private static final byte[] TEST_CONTENT = new byte[]{'a'};
@Test
void ofNameAndByteArrayCreatesClass() {