]> source.dussan.org Git - sonarqube.git/commitdiff
Fix Quality flaws
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 14 Sep 2017 16:29:03 +0000 (18:29 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 26 Sep 2017 21:49:37 +0000 (23:49 +0200)
server/sonar-main/src/main/java/org/sonar/application/process/EsProcessMonitor.java

index fd611188f953a5ee848980fbaae2585a82427537..f4b3ad9240de44b210378193aaf1f9da21c6425b 100644 (file)
@@ -111,7 +111,7 @@ public class EsProcessMonitor extends AbstractProcessMonitor {
     @Override
     public void close() {
       super.close();
-      if (NetworkModule.TRANSPORT_TYPE_SETTING.exists(settings) == false
+      if (!NetworkModule.TRANSPORT_TYPE_SETTING.exists(settings)
           || NetworkModule.TRANSPORT_TYPE_SETTING.get(settings).equals(Netty4Plugin.NETTY_TRANSPORT_NAME)) {
         try {
           GlobalEventExecutor.INSTANCE.awaitInactivity(5, TimeUnit.SECONDS);