Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix warnings/javadocs in sal-distributed-datastore
[controller.git]
/
opendaylight
/
md-sal
/
sal-distributed-datastore
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
messages
/
DataExists.java
diff --git
a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/DataExists.java
b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/DataExists.java
index db62547d424506efb26236610e9d1567e032e6fd..1bd687cbb7576c65513cafd8e4823c502914bcb5 100644
(file)
--- a/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/DataExists.java
+++ b/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/DataExists.java
@@
-32,10
+32,11
@@
public class DataExists extends AbstractRead<Boolean> {
@Override
public void processResponse(Object response, SettableFuture<Boolean> returnFuture) {
@Override
public void processResponse(Object response, SettableFuture<Boolean> returnFuture) {
- if(DataExistsReply.isSerializedType(response)) {
+ if
(DataExistsReply.isSerializedType(response)) {
returnFuture.set(Boolean.valueOf(DataExistsReply.fromSerializable(response).exists()));
} else {
returnFuture.set(Boolean.valueOf(DataExistsReply.fromSerializable(response).exists()));
} else {
- returnFuture.setException(new ReadFailedException("Invalid response checking exists for path " + getPath()));
+ returnFuture.setException(new ReadFailedException("Invalid response checking exists for path "
+ + getPath()));
}
}
}
}
@@
-44,7
+45,7
@@
public class DataExists extends AbstractRead<Boolean> {
return new DataExists(getPath(), withVersion);
}
return new DataExists(getPath(), withVersion);
}
- public static DataExists fromSerializable(final Object serializable){
+ public static DataExists fromSerializable(final Object serializable)
{
Preconditions.checkArgument(serializable instanceof DataExists);
return (DataExists)serializable;
}
Preconditions.checkArgument(serializable instanceof DataExists);
return (DataExists)serializable;
}