Skip to content

Commit 7d112ec

Browse files
committed
Minor tweak to #4063
1 parent ef23d8c commit 7d112ec

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/main/java/com/fasterxml/jackson/databind/util/NativeImageUtil.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,18 @@ public class NativeImageUtil {
1212

1313
private static final boolean RUNNING_IN_SVM = System.getProperty("org.graalvm.nativeimage.imagecode") != null;
1414

15-
private NativeImageUtil() {
16-
}
15+
private NativeImageUtil() { }
1716

1817
/**
1918
* Check whether we're running in SubstrateVM native image and also in "runtime" mode.
2019
* The "runtime" check cannot be a constant, because
2120
* the static initializer may run early during build time
2221
*<p>
23-
* As optimization, {@link #RUNNING_IN_SVM} is used to short-circuit on normal JVMs.
22+
* As optimization, {@code RUNNING_IN_SVM} is used to short-circuit on normal JVMs.
23+
*
24+
* @since 2.16
2425
*/
25-
private static boolean isInNativeImageAndIsAtRuntime() {
26+
public static boolean isInNativeImageAndIsAtRuntime() {
2627
return RUNNING_IN_SVM && "runtime".equals(System.getProperty("org.graalvm.nativeimage.imagecode"));
2728
}
2829

0 commit comments

Comments
 (0)