Resolved some sonar issues: Simplify Boolean Expression
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / repo / SharedSchemaContextFactory.java
index ebb97ee8bbf632c5601f8b69ebdbe41bc0da9047..e6e357dc0e9664f21595bf54066caea591071500 100644 (file)
@@ -190,7 +190,7 @@ final class SharedSchemaContextFactory implements SchemaContextFactory {
                 final ASTSchemaSource astSchemaSource = input.get(i);
                 final SourceIdentifier realSId = astSchemaSource.getIdentifier();
 
-                if (expectedSId.equals(realSId) == false) {
+                if (!expectedSId.equals(realSId)) {
                     LOG.warn("Source identifier mismatch for module \"{}\", requested as {} but actually is {}. Using actual id", expectedSId.getName(), expectedSId, realSId);
                 }