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 checkstyle warnings in netconf-util
[controller.git]
/
opendaylight
/
netconf
/
netconf-util
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
netconf
/
util
/
osgi
/
NetconfConfigUtil.java
diff --git
a/opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/osgi/NetconfConfigUtil.java
b/opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/osgi/NetconfConfigUtil.java
index c77e0d7da25dc112e54489fbae42bf317a3f2b3f..64aeebd54205c658cad64589994a436282cbdb5b 100644
(file)
--- a/
opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/osgi/NetconfConfigUtil.java
+++ b/
opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/osgi/NetconfConfigUtil.java
@@
-16,7
+16,7
@@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public final class NetconfConfigUtil {
import org.slf4j.LoggerFactory;
public final class NetconfConfigUtil {
- private static final Logger
logger
= LoggerFactory.getLogger(NetconfConfigUtil.class);
+ private static final Logger
LOG
= LoggerFactory.getLogger(NetconfConfigUtil.class);
private static final String PREFIX_PROP = "netconf.";
private static final String PREFIX_PROP = "netconf.";
@@
-48,7
+48,7
@@
public final class NetconfConfigUtil {
try {
return Long.parseLong(timeoutString);
} catch (final NumberFormatException e) {
try {
return Long.parseLong(timeoutString);
} catch (final NumberFormatException e) {
-
logger
.warn("Cannot parse {} property: {}, using defaults", key, timeoutString, e);
+
LOG
.warn("Cannot parse {} property: {}, using defaults", key, timeoutString, e);
return DEFAULT_TIMEOUT_MILLIS;
}
}
return DEFAULT_TIMEOUT_MILLIS;
}
}
@@
-89,7
+89,7
@@
public final class NetconfConfigUtil {
try {
return Optional.of(parseAddress(address, port));
} catch (final RuntimeException e) {
try {
return Optional.of(parseAddress(address, port));
} catch (final RuntimeException e) {
-
logger
.warn("Unable to parse {} netconf address from {}:{}, fallback to default",
+
LOG
.warn("Unable to parse {} netconf address from {}:{}, fallback to default",
infixProp, address, port, e);
}
}
infixProp, address, port, e);
}
}