Address trivial eclipse warnings
[yangtools.git] / yang / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / FixedYangInstanceIdentifier.java
index 59f58c09e44a5090b60aee04d1c1ab1de329fd48..d5a07238e300fca6391f7d55f895b160c9089ed4 100644 (file)
@@ -14,7 +14,7 @@ import java.util.List;
 import org.opendaylight.yangtools.util.HashCodeBuilder;
 
 final class FixedYangInstanceIdentifier extends YangInstanceIdentifier implements Cloneable {
-    static final FixedYangInstanceIdentifier EMPTY_INSTANCE = new FixedYangInstanceIdentifier(ImmutableList.<PathArgument>of(), new HashCodeBuilder<>().build());
+    static final FixedYangInstanceIdentifier EMPTY_INSTANCE = new FixedYangInstanceIdentifier(ImmutableList.of(), new HashCodeBuilder<>().build());
     private static final long serialVersionUID = 1L;
     private final ImmutableList<PathArgument> path;
     private transient volatile YangInstanceIdentifier parent;
@@ -120,9 +120,8 @@ final class FixedYangInstanceIdentifier extends YangInstanceIdentifier implement
     boolean pathArgumentsEqual(final YangInstanceIdentifier other) {
         if (other instanceof FixedYangInstanceIdentifier) {
             return path.equals(((FixedYangInstanceIdentifier) other).path);
-        } else {
-            return super.pathArgumentsEqual(other);
         }
+        return super.pathArgumentsEqual(other);
     }
 
     @Override