From 258abebeb1e0b7413dda612e537f09e89e79c1e6 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Thu, 31 Dec 2015 12:35:14 +0000 Subject: [PATCH] Formatting --- .../cloud/sleuth/stream/ServerPropertiesHostLocator.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spring-cloud-sleuth-stream/src/main/java/org/springframework/cloud/sleuth/stream/ServerPropertiesHostLocator.java b/spring-cloud-sleuth-stream/src/main/java/org/springframework/cloud/sleuth/stream/ServerPropertiesHostLocator.java index 8257019fb..8f3d85272 100644 --- a/spring-cloud-sleuth-stream/src/main/java/org/springframework/cloud/sleuth/stream/ServerPropertiesHostLocator.java +++ b/spring-cloud-sleuth-stream/src/main/java/org/springframework/cloud/sleuth/stream/ServerPropertiesHostLocator.java @@ -32,7 +32,7 @@ public class ServerPropertiesHostLocator implements HostLocator { private Integer port; public ServerPropertiesHostLocator(ServerProperties serverProperties, - String appName) { + String appName) { this.serverProperties = serverProperties; this.appName = appName; } @@ -52,11 +52,11 @@ public class ServerPropertiesHostLocator implements HostLocator { } private Integer getPort() { - if (this.port!=null) { + if (this.port != null) { return this.port; } Integer port; - if (this.serverProperties!=null && this.serverProperties.getPort() != null) { + if (this.serverProperties != null && this.serverProperties.getPort() != null) { port = this.serverProperties.getPort(); } else { @@ -67,7 +67,7 @@ public class ServerPropertiesHostLocator implements HostLocator { private String getAddress() { String address; - if (this.serverProperties!=null && this.serverProperties.getAddress() != null) { + if (this.serverProperties != null && this.serverProperties.getAddress() != null) { address = this.serverProperties.getAddress().getHostAddress(); } else {