Resolved some sonar issues: Simplify Boolean Expression
[yangtools.git] / yang / yang-model-util / src / main / java / org / opendaylight / yangtools / yang / model / repo / util / FilesystemSchemaSourceCache.java
index 675a6953418fbbd8a6e969bde48c35bd7d41f03a..3478953a0607b7e02e2eb6b4646fbda0557ee1e9 100644 (file)
@@ -62,7 +62,7 @@ public final class FilesystemSchemaSourceCache<T extends SchemaSourceRepresentat
 
         checkSupportedRepresentation(representation);
 
-        if(storageDirectory.exists() == false) {
+        if(!storageDirectory.exists()) {
             Preconditions.checkArgument(storageDirectory.mkdirs(), "Unable to create cache directory at %s", storageDirectory);
         }
         Preconditions.checkArgument(storageDirectory.exists());