X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fcds-access-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Faccess%2Fconcepts%2FLocalHistoryIdentifier.java;h=29e3df74f5657a9697731d4cdc60c526a8baf14d;hb=refs%2Fchanges%2F59%2F47459%2F4;hp=a6e81f13aa111134570354241895e5c2a37316e3;hpb=97ff7dff8e58531065833736d5788808ca9e0396;p=controller.git diff --git a/opendaylight/md-sal/cds-access-api/src/main/java/org/opendaylight/controller/cluster/access/concepts/LocalHistoryIdentifier.java b/opendaylight/md-sal/cds-access-api/src/main/java/org/opendaylight/controller/cluster/access/concepts/LocalHistoryIdentifier.java index a6e81f13aa..29e3df74f5 100644 --- a/opendaylight/md-sal/cds-access-api/src/main/java/org/opendaylight/controller/cluster/access/concepts/LocalHistoryIdentifier.java +++ b/opendaylight/md-sal/cds-access-api/src/main/java/org/opendaylight/controller/cluster/access/concepts/LocalHistoryIdentifier.java @@ -42,6 +42,9 @@ public final class LocalHistoryIdentifier implements WritableIdentifier { private long historyId; private long cookie; + // checkstyle flags the public modifier as redundant however it is explicitly needed for Java serialization to + // be able to create instances via reflection. + @SuppressWarnings("checkstyle:RedundantModifier") public Proxy() { // For Externalizable } @@ -122,15 +125,15 @@ public final class LocalHistoryIdentifier implements WritableIdentifier { } @Override - public boolean equals(final Object o) { - if (this == o) { + public boolean equals(final Object obj) { + if (this == obj) { return true; } - if (!(o instanceof LocalHistoryIdentifier)) { + if (!(obj instanceof LocalHistoryIdentifier)) { return false; } - final LocalHistoryIdentifier other = (LocalHistoryIdentifier) o; + final LocalHistoryIdentifier other = (LocalHistoryIdentifier) obj; return historyId == other.historyId && cookie == other.cookie && clientId.equals(other.clientId); }