removed double negation
authorDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Thu, 17 Nov 2011 14:18:12 +0000 (15:18 +0100)
committerDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Thu, 17 Nov 2011 14:18:12 +0000 (15:18 +0100)
platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/impl/VirtualDirectoryImpl.java

index 11d31ef412d378f87ee9036a38c1c5798299541e..02c1487d6afae0c4d5f6a2d5c2a06fe6d45ce307 100644 (file)
@@ -182,7 +182,7 @@ public class VirtualDirectoryImpl extends VirtualFileSystemEntry {
 
   private static final boolean IS_UNDER_TEAMCITY = System.getProperty("bootstrap.testcases") != null;
 
-  private static final boolean SHOULD_NOT_PERFORM_ACCESS_CHECK = System.getProperty("should.not.perform.access.check") != null;
+  private static final boolean SHOULD_PERFORM_ACCESS_CHECK = System.getProperty("should.not.perform.access.check") == null;
 
   private static final boolean IS_UNIT_TESTS = ApplicationManager.getApplication().isUnitTestMode();
 
@@ -201,7 +201,7 @@ public class VirtualDirectoryImpl extends VirtualFileSystemEntry {
         ApplicationManager.getApplication() instanceof ApplicationImpl &&
         ((ApplicationImpl)ApplicationManager.getApplication()).isComponentsCreated()
         &&
-        !SHOULD_NOT_PERFORM_ACCESS_CHECK) {
+        SHOULD_PERFORM_ACCESS_CHECK) {
       NewVirtualFileSystem fileSystem = child.getFileSystem();
       if (fileSystem != LocalFileSystem.getInstance() && fileSystem != JarFileSystem.getInstance()) {
         return;