Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
BUG-5280: add executionTimeNanos
[controller.git]
/
opendaylight
/
md-sal
/
cds-access-api
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
access
/
concepts
/
ClientIdentifier.java
diff --git
a/opendaylight/md-sal/cds-access-api/src/main/java/org/opendaylight/controller/cluster/access/concepts/ClientIdentifier.java
b/opendaylight/md-sal/cds-access-api/src/main/java/org/opendaylight/controller/cluster/access/concepts/ClientIdentifier.java
index 0a2ea5702c268caaf58581384137d5677895fb4c..fe178f26e9d25cc0aa29202ce951b5096fd6a3c1 100644
(file)
--- a/
opendaylight/md-sal/cds-access-api/src/main/java/org/opendaylight/controller/cluster/access/concepts/ClientIdentifier.java
+++ b/
opendaylight/md-sal/cds-access-api/src/main/java/org/opendaylight/controller/cluster/access/concepts/ClientIdentifier.java
@@
-16,7
+16,8
@@
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
-import org.opendaylight.yangtools.concepts.Identifier;
+import org.opendaylight.yangtools.concepts.WritableIdentifier;
+import org.opendaylight.yangtools.concepts.WritableObjects;
/**
* A cluster-wide unique identifier of a frontend instance. This identifier discerns between individual incarnations
/**
* A cluster-wide unique identifier of a frontend instance. This identifier discerns between individual incarnations
@@
-25,12
+26,15
@@
import org.opendaylight.yangtools.concepts.Identifier;
* @author Robert Varga
*/
@Beta
* @author Robert Varga
*/
@Beta
-public final class ClientIdentifier implements
Identifier, WritableObject
{
+public final class ClientIdentifier implements
WritableIdentifier
{
private static final class Proxy implements Externalizable {
private static final long serialVersionUID = 1L;
private FrontendIdentifier frontendId;
private long generation;
private static final class Proxy implements Externalizable {
private static final long serialVersionUID = 1L;
private FrontendIdentifier frontendId;
private long generation;
+ // 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() {
// Needed for Externalizable
}
public Proxy() {
// Needed for Externalizable
}
@@
-96,15
+100,15
@@
public final class ClientIdentifier implements Identifier, WritableObject {
}
@Override
}
@Override
- public boolean equals(final Object o) {
- if (this == o) {
+ public boolean equals(final Object o
bj
) {
+ if (this == o
bj
) {
return true;
}
return true;
}
- if (!(o instanceof ClientIdentifier)) {
+ if (!(o
bj
instanceof ClientIdentifier)) {
return false;
}
return false;
}
- final ClientIdentifier other = (ClientIdentifier) o;
+ final ClientIdentifier other = (ClientIdentifier) o
bj
;
return generation == other.generation && frontendId.equals(other.frontendId);
}
return generation == other.generation && frontendId.equals(other.frontendId);
}