From 413c61886058c38e0aa80bc85b41b46af26a3ee3 Mon Sep 17 00:00:00 2001 From: Tanguy Leroux Date: Tue, 12 Jun 2018 14:07:15 +0200 Subject: [PATCH] Update checkstyle to 8.10.1 --- .../org/elasticsearch/gradle/precommit/PrecommitTasks.groovy | 2 +- .../src/main/java/org/elasticsearch/transport/Transports.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/precommit/PrecommitTasks.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/precommit/PrecommitTasks.groovy index 09f0ad01578c9..3709805680d7a 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/precommit/PrecommitTasks.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/precommit/PrecommitTasks.groovy @@ -140,7 +140,7 @@ class PrecommitTasks { configProperties = [ suppressions: checkstyleSuppressions ] - toolVersion = 7.5 + toolVersion = '8.10.1' } project.tasks.withType(Checkstyle) { task -> diff --git a/server/src/main/java/org/elasticsearch/transport/Transports.java b/server/src/main/java/org/elasticsearch/transport/Transports.java index ddd22a7fb868c..b4579374d9ec4 100644 --- a/server/src/main/java/org/elasticsearch/transport/Transports.java +++ b/server/src/main/java/org/elasticsearch/transport/Transports.java @@ -36,7 +36,7 @@ public enum Transports { * used in assertions to make sure that we do not call blocking code from * networking threads. */ - public static final boolean isTransportThread(Thread t) { + public static boolean isTransportThread(Thread t) { final String threadName = t.getName(); for (String s : Arrays.asList( HttpServerTransport.HTTP_SERVER_WORKER_THREAD_NAME_PREFIX,