This fixes up the issues reported and flips enforcement to on.
Change-Id: I2e9b0c82af063d322428216be40e7562959f0824
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
<propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
</configuration>
</plugin>
+ <plugin>
+ <groupId>com.github.spotbugs</groupId>
+ <artifactId>spotbugs-maven-plugin</artifactId>
+ <configuration>
+ <failOnError>true</failOnError>
+ </configuration>
+ </plugin>
</plugins>
</build>
</project>
*/
package org.opendaylight.yangtools.yang.binding;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
+
/**
* Object is unique identifier for another object.
*
- * @param <T>
- * Class of object for which this object is identifier
+ * @param <T> Class of object for which this object is identifier
* @author ttkacik
*/
+@SuppressFBWarnings(value = "NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification = "This is binding specialization")
public interface Identifier<T extends Identifiable<?>> extends org.opendaylight.yangtools.concepts.Identifier {
}
pathArguments = ImmutableList.copyOf(args);
}
- private Object readResolve() throws ObjectStreamException {
+ Object readResolve() throws ObjectStreamException {
return new InstanceIdentifier<>(targetType, pathArguments, wildcarded, hash);
}
}
key = (K) in.readObject();
}
- private Object readResolve() throws ObjectStreamException {
+ @Override
+ Object readResolve() throws ObjectStreamException {
return new KeyedInstanceIdentifier<>(getTargetType(), getPathArguments(), isWildcarded(), getHash(), key);
}
}