summaryrefslogtreecommitdiffstats
path: root/infra/northbound/common/src
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2017-11-23 12:06:44 +0100
committerMarek Gradzki <mgradzki@cisco.com>2017-11-23 12:06:44 +0100
commitf2a0dc1c2fb8f94ab2fc8120827f3738fbf9cdb6 (patch)
tree8ef9a1d00c96d8539349f37d30a06fb11bdc0f57 /infra/northbound/common/src
parentf1c1e241b48997397616d9ac011647e2ac636397 (diff)
Fix method/modifiers ordering to comply with JLS
Change-Id: I2b886a118ff5167df89a2922802b343ce5978c95 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'infra/northbound/common/src')
-rw-r--r--infra/northbound/common/src/main/java/io/fd/honeycomb/northbound/NetconfConfiguration.java44
1 files changed, 22 insertions, 22 deletions
diff --git a/infra/northbound/common/src/main/java/io/fd/honeycomb/northbound/NetconfConfiguration.java b/infra/northbound/common/src/main/java/io/fd/honeycomb/northbound/NetconfConfiguration.java
index 98d64d017..b015e355c 100644
--- a/infra/northbound/common/src/main/java/io/fd/honeycomb/northbound/NetconfConfiguration.java
+++ b/infra/northbound/common/src/main/java/io/fd/honeycomb/northbound/NetconfConfiguration.java
@@ -24,18 +24,6 @@ import net.jmob.guice.conf.core.Syntax;
@BindConfig(value = "netconf", syntax = Syntax.JSON)
public class NetconfConfiguration {
- public boolean isNetconfTcpEnabled() {
- return Boolean.valueOf(netconfTcp);
- }
-
- public boolean isNetconfSshEnabled() {
- return Boolean.valueOf(netconfSsh);
- }
-
- public boolean isNetconfEnabled() {
- return isNetconfTcpEnabled() || isNetconfSshEnabled();
- }
-
@InjectConfig("netconf-netty-threads")
public Integer netconfNettyThreads;
@InjectConfig("netconf-tcp-enabled")
@@ -53,17 +41,29 @@ public class NetconfConfiguration {
@InjectConfig("netconf-notification-stream-name")
public Optional<String> netconfNotificationStreamName = Optional.of("honeycomb");
+ public boolean isNetconfTcpEnabled() {
+ return Boolean.valueOf(netconfTcp);
+ }
+
+ public boolean isNetconfSshEnabled() {
+ return Boolean.valueOf(netconfSsh);
+ }
+
+ public boolean isNetconfEnabled() {
+ return isNetconfTcpEnabled() || isNetconfSshEnabled();
+ }
+
@Override
public String toString() {
- return "NetconfConfiguration{" +
- "netconfNettyThreads=" + netconfNettyThreads +
- ", netconfTcp='" + netconfTcp + '\'' +
- ", netconfTcpBindingAddress=" + netconfTcpBindingAddress +
- ", netconfTcpBindingPort=" + netconfTcpBindingPort +
- ", netconfSsh='" + netconfSsh + '\'' +
- ", netconfSshBindingAddress=" + netconfSshBindingAddress +
- ", netconfSshBindingPort=" + netconfSshBindingPort +
- ", netconfNotificationStreamName=" + netconfNotificationStreamName +
- '}';
+ return "NetconfConfiguration{"
+ + "netconfNettyThreads=" + netconfNettyThreads
+ + ", netconfTcp='" + netconfTcp + '\''
+ + ", netconfTcpBindingAddress=" + netconfTcpBindingAddress
+ + ", netconfTcpBindingPort=" + netconfTcpBindingPort
+ + ", netconfSsh='" + netconfSsh + '\''
+ + ", netconfSshBindingAddress=" + netconfSshBindingAddress
+ + ", netconfSshBindingPort=" + netconfSshBindingPort
+ + ", netconfNotificationStreamName=" + netconfNotificationStreamName
+ + '}';
}
}