Skip to content

Commit

Permalink
corrected wrong check of system property to determine to proceed
Browse files Browse the repository at this point in the history
  • Loading branch information
jh3nd3rs0n committed Feb 17, 2024
1 parent c3b7e05 commit f161c17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private ThreadFactoryHelper() {
}

public static ThreadFactory getThreadFactory() {
if (!"true".equals(System.getProperty(
if ("false".equals(System.getProperty(
USE_VIRTUAL_THREADS_SYSTEM_PROPERTY_NAME))) {
return Executors.defaultThreadFactory();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private ThreadFactoryHelper() {
}

public static ThreadFactory getThreadFactory() {
if (!"true".equals(System.getProperty(
if ("false".equals(System.getProperty(
USE_VIRTUAL_THREADS_SYSTEM_PROPERTY_NAME))) {
return Executors.defaultThreadFactory();
}
Expand Down

0 comments on commit f161c17

Please sign in to comment.