Skip to content

Commit 2d97f19

Browse files
Fix Headless Check
1 parent b5807bb commit 2d97f19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vcell-util/src/main/java/org/vcell/util/VCellThreadChecker.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ public static void checkSwingInvocation() {
6666

6767
public static void checkCpuIntensiveInvocation() {
6868
String isHeadless = System.getProperty("headless");
69-
if (isHeadless != null && !isHeadless.equals("true")){
69+
boolean headlessCheck = isHeadless != null && isHeadless.equals("true");
70+
if (!headlessCheck){
7071
if (guiThreadChecker == null){
7172
System.out.println("!!!!!!!!!!!!!! --VCellThreadChecker.setGUIThreadChecker() not set");
7273
Thread.dumpStack();

0 commit comments

Comments
 (0)