diff options
author | Tor Norbye <tnorbye@google.com> | 2014-09-18 11:43:07 -0700 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2014-09-18 11:43:28 -0700 |
commit | e782c57d74000722f9db4c9426317410520670c6 (patch) | |
tree | 6e5d3e8934107ffabb7661f8bfc0e1a08eb37faf /plugins/InspectionGadgets/test/com/siyeh/igtest/threading/NonThreadSafeLazyInitializationInspection.java | |
parent | c3d3a90f6b4ead083d63e28e6b9fcea93d675678 (diff) | |
download | idea-e782c57d74000722f9db4c9426317410520670c6.tar.gz |
Snapshot idea/138.2210 from git://git.jetbrains.org/idea/community.git
Change-Id: I8f0204d7887ee78cf1fd8c09f936c5afff0edd2f
Diffstat (limited to 'plugins/InspectionGadgets/test/com/siyeh/igtest/threading/NonThreadSafeLazyInitializationInspection.java')
-rw-r--r-- | plugins/InspectionGadgets/test/com/siyeh/igtest/threading/NonThreadSafeLazyInitializationInspection.java | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/plugins/InspectionGadgets/test/com/siyeh/igtest/threading/NonThreadSafeLazyInitializationInspection.java b/plugins/InspectionGadgets/test/com/siyeh/igtest/threading/NonThreadSafeLazyInitializationInspection.java deleted file mode 100644 index 20d62f94cb4e..000000000000 --- a/plugins/InspectionGadgets/test/com/siyeh/igtest/threading/NonThreadSafeLazyInitializationInspection.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.siyeh.igtest.threading; - -public class NonThreadSafeLazyInitializationInspection { - private static Object foo; - - static - { - if (foo == null) { - foo = new Object(); - } - - } - - { - if (foo == null) { - foo = new Object(); - } - - } - - public void instMethod() { - if (foo == null) { - foo = new Object(); - } - } - - public void lockedInstMethod() { - synchronized (NonThreadSafeLazyInitializationInspection.class) { - if (foo == null) { - foo = new Object(); - } - } - } -} |