Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Reuse PEM provider in netconf-testtool."
[controller.git]
/
opendaylight
/
md-sal
/
sal-common-util
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
sal
/
common
/
util
/
Arguments.java
diff --git
a/opendaylight/md-sal/sal-common-util/src/main/java/org/opendaylight/controller/sal/common/util/Arguments.java
b/opendaylight/md-sal/sal-common-util/src/main/java/org/opendaylight/controller/sal/common/util/Arguments.java
index a4017c23a89df0b4099f193e6cef4f44c2f281f9..17ce5dffcf0b97ea18c86774da3acaee428ee6ae 100644
(file)
--- a/
opendaylight/md-sal/sal-common-util/src/main/java/org/opendaylight/controller/sal/common/util/Arguments.java
+++ b/
opendaylight/md-sal/sal-common-util/src/main/java/org/opendaylight/controller/sal/common/util/Arguments.java
@@
-23,8
+23,9
@@
public final class Arguments {
*/
@SuppressWarnings("unchecked")
public static <T> T checkInstanceOf(Object value, Class<T> type) {
*/
@SuppressWarnings("unchecked")
public static <T> T checkInstanceOf(Object value, Class<T> type) {
- if(!type.isInstance(value))
+ if(!type.isInstance(value))
{
throw new IllegalArgumentException(String.format("Value %s is not of type %s", value, type));
throw new IllegalArgumentException(String.format("Value %s is not of type %s", value, type));
+ }
return (T) value;
}
}
return (T) value;
}
}