Skip to content

Commit

Permalink
minor performance: remove redundant initializers from volatile fields
Browse files Browse the repository at this point in the history
  • Loading branch information
cdracm committed Apr 29, 2016
1 parent 9b028d9 commit fcfb6f2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -25,7 +25,7 @@ public class JstdLibraryUtil {
public static final String LIBRARY_NAME = "JsTestDriver Assertion Framework";

private static final AtomicBoolean INITIALIZED = new AtomicBoolean(false);
private static volatile Boolean JSTD_LIBRARY_EXISTS = null;
private static volatile Boolean JSTD_LIBRARY_EXISTS;

private static void init(@NotNull Project project) {
if (INITIALIZED.compareAndSet(false, true)) {
Expand Down

0 comments on commit fcfb6f2

Please sign in to comment.