Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Bump to odlparent 3.1.0 and yangtools 2.0.3
[controller.git]
/
opendaylight
/
md-sal
/
sal-distributed-datastore
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
exceptions
/
NoShardLeaderException.java
diff --git
a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/exceptions/NoShardLeaderException.java
b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/exceptions/NoShardLeaderException.java
index 8365177d1b9307ae9c6cd7681d8cfdac0c50d2d9..fed443b5d4f08f67c4887ab78fd1b630c4d9ce34 100644
(file)
--- a/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/exceptions/NoShardLeaderException.java
+++ b/
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/exceptions/NoShardLeaderException.java
@@
-8,6
+8,8
@@
package org.opendaylight.controller.cluster.datastore.exceptions;
import com.google.common.base.Strings;
package org.opendaylight.controller.cluster.datastore.exceptions;
import com.google.common.base.Strings;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
+import javax.annotation.Nullable;
/**
* Exception indicating a shard has no current leader.
/**
* Exception indicating a shard has no current leader.
@@
-21,7
+23,9
@@
public class NoShardLeaderException extends RuntimeException {
super(message);
}
super(message);
}
- public NoShardLeaderException(String message, String shardName) {
+ @SuppressFBWarnings(value = "NP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE",
+ justification = "Unrecognised NullableDecl")
+ public NoShardLeaderException(@Nullable String message, String shardName) {
super(String.format("%sShard %s currently has no leader. Try again later.",
(Strings.isNullOrEmpty(message) ? "" : message + ". "), shardName));
}
super(String.format("%sShard %s currently has no leader. Try again later.",
(Strings.isNullOrEmpty(message) ? "" : message + ". "), shardName));
}