diff options
author | Belen Pruvost <belen.pruvost@sonarsource.com> | 2021-09-16 09:53:08 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-09-16 20:03:30 +0000 |
commit | 2af2f20c35b324fc5f9a5bced333cbdaa64cbe96 (patch) | |
tree | 91a39ce302ef2990d96e8238c06cc286ed4d13d4 /server/sonar-main | |
parent | cb95ab82013c2ce242b3f34bd7a7072e181e4f62 (diff) | |
download | sonarqube-2af2f20c35b324fc5f9a5bced333cbdaa64cbe96.tar.gz sonarqube-2af2f20c35b324fc5f9a5bced333cbdaa64cbe96.zip |
[NO-JIRA] Addressing some code smells
Diffstat (limited to 'server/sonar-main')
-rw-r--r-- | server/sonar-main/src/main/java/org/sonar/application/config/ClusterSettings.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/server/sonar-main/src/main/java/org/sonar/application/config/ClusterSettings.java b/server/sonar-main/src/main/java/org/sonar/application/config/ClusterSettings.java index 140a0f6944a..aef62f21922 100644 --- a/server/sonar-main/src/main/java/org/sonar/application/config/ClusterSettings.java +++ b/server/sonar-main/src/main/java/org/sonar/application/config/ClusterSettings.java @@ -136,13 +136,13 @@ public class ClusterSettings implements Consumer<Props> { } private Set<AddressAndPort> parseAndCheckHosts(Property property, String value) { - Set<AddressAndPort> res = parseHosts( value); + Set<AddressAndPort> res = parseHosts(value); checkValidHosts(property, res); return res; } private void checkValidHosts(Property property, Set<AddressAndPort> addressAndPorts) { - List<String> invalidHosts = addressAndPorts.stream() + List<String> invalidHosts = addressAndPorts.stream() .map(AddressAndPort::getHost) .filter(t -> !network.toInetAddress(t).isPresent()) .sorted() @@ -231,7 +231,9 @@ public class ClusterSettings implements Consumer<Props> { private static class AddressAndPort { private static final int NO_PORT = -1; - /** the host from setting, can be a hostname or an IP address */ + /** + * the host from setting, can be a hostname or an IP address + */ private final String host; private final int port; |