Update checkstyle to 8.10.1 (#31269)

This commit is contained in:
Tanguy Leroux 2018-06-13 09:22:17 +02:00 committed by GitHub
parent 16d593b22f
commit 1f6e874002
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ class PrecommitTasks {
configProperties = [ configProperties = [
suppressions: checkstyleSuppressions suppressions: checkstyleSuppressions
] ]
toolVersion = 7.5 toolVersion = '8.10.1'
} }
project.tasks.withType(Checkstyle) { task -> project.tasks.withType(Checkstyle) { task ->

View File

@ -36,7 +36,7 @@ public enum Transports {
* used in assertions to make sure that we do not call blocking code from * used in assertions to make sure that we do not call blocking code from
* networking threads. * networking threads.
*/ */
public static final boolean isTransportThread(Thread t) { public static boolean isTransportThread(Thread t) {
final String threadName = t.getName(); final String threadName = t.getName();
for (String s : Arrays.asList( for (String s : Arrays.asList(
HttpServerTransport.HTTP_SERVER_WORKER_THREAD_NAME_PREFIX, HttpServerTransport.HTTP_SERVER_WORKER_THREAD_NAME_PREFIX,