Skip to content

Commit 70aba11

Browse files
RuntimeClassLoading: move inner classes to the bottom
1 parent a3f605d commit 70aba11

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/hub/RuntimeClassLoading.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -125,22 +125,6 @@ public static boolean isSupported() {
125125
return Options.RuntimeClassLoading.getValue();
126126
}
127127

128-
@Platforms(Platform.HOSTED_ONLY.class)
129-
public static final class NoRuntimeClassLoading implements BooleanSupplier {
130-
@Override
131-
public boolean getAsBoolean() {
132-
return !isSupported();
133-
}
134-
}
135-
136-
@Platforms(Platform.HOSTED_ONLY.class)
137-
public static final class WithRuntimeClassLoading implements BooleanSupplier {
138-
@Override
139-
public boolean getAsBoolean() {
140-
return isSupported();
141-
}
142-
}
143-
144128
public static Class<?> defineClass(ClassLoader loader, String expectedName, byte[] b, int off, int len, ClassDefinitionInfo info) {
145129
if (PredefinedClassesSupport.hasBytecodeClasses()) {
146130
Class<?> knownClass = PredefinedClassesSupport.knownClass(b, off, len);
@@ -287,4 +271,20 @@ public static void ensureLinked(DynamicHub dynamicHub) {
287271
}
288272
// GR-59739 runtime linking
289273
}
274+
275+
@Platforms(Platform.HOSTED_ONLY.class)
276+
public static final class NoRuntimeClassLoading implements BooleanSupplier {
277+
@Override
278+
public boolean getAsBoolean() {
279+
return !isSupported();
280+
}
281+
}
282+
283+
@Platforms(Platform.HOSTED_ONLY.class)
284+
public static final class WithRuntimeClassLoading implements BooleanSupplier {
285+
@Override
286+
public boolean getAsBoolean() {
287+
return isSupported();
288+
}
289+
}
290290
}

0 commit comments

Comments
 (0)