Skip to content

Commit

Permalink
Only run ModuleHelper for JVM >= 16.
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg committed Jun 5, 2022
1 parent 070ee84 commit b3fc6bc
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -28,6 +28,8 @@

import javax.annotation.Nullable;

import com.diffplug.spotless.Jvm;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import sun.misc.Unsafe;

Expand All @@ -48,7 +50,7 @@ private ModuleHelper() {}
private static boolean checkDone = false;

public static synchronized void doOpenInternalPackagesIfRequired() {
if (checkDone) {
if (Jvm.version() < 16 || checkDone) {
return;
}
try {
Expand Down

0 comments on commit b3fc6bc

Please sign in to comment.