From f2a0dc1c2fb8f94ab2fc8120827f3738fbf9cdb6 Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Thu, 23 Nov 2017 12:06:44 +0100 Subject: Fix method/modifiers ordering to comply with JLS Change-Id: I2b886a118ff5167df89a2922802b343ce5978c95 Signed-off-by: Marek Gradzki --- .../honeycomb/northbound/NetconfConfiguration.java | 44 +++++++++++----------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'infra/northbound/common') 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 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 + + '}'; } } -- cgit 1.2.3-korg