diff --git a/android-interop-testing/build.gradle b/android-interop-testing/build.gradle index 2db9f513d64..bfcf13ba9de 100644 --- a/android-interop-testing/build.gradle +++ b/android-interop-testing/build.gradle @@ -110,8 +110,6 @@ tasks.withType(JavaCompile).configureEach { it.options.errorprone.excludedPaths, ".*/src/generated/.*", "|") - // Reuses source code from grpc-interop-testing, which targets Java 7 (no method references) - options.errorprone.check("UnnecessaryAnonymousClass", CheckSeverity.OFF) } configureProtoCompilation() diff --git a/binder/build.gradle b/binder/build.gradle index 41c4bd4cc22..9aa149db77e 100644 --- a/binder/build.gradle +++ b/binder/build.gradle @@ -90,8 +90,6 @@ tasks.withType(JavaCompile).configureEach { "-Xlint:-cast" ] appendToProperty(it.options.errorprone.excludedPaths, ".*/R.java", "|") - // Reuses source code from grpc-core, which targets Java 7 (no method references) - options.errorprone.check("UnnecessaryAnonymousClass", CheckSeverity.OFF) } tasks.register("javadocs", Javadoc) { diff --git a/build.gradle b/build.gradle index b86686504b1..721b0b3fc55 100644 --- a/build.gradle +++ b/build.gradle @@ -246,8 +246,6 @@ subprojects { } tasks.named("compileJava").configure { - // This project targets Java 7 (no method references) - options.errorprone.check("UnnecessaryAnonymousClass", CheckSeverity.OFF) // This project targets Java 7 (no time.Duration class) options.errorprone.check("PreferJavaTimeOverload", CheckSeverity.OFF) options.errorprone.check("JavaUtilDate", CheckSeverity.OFF) @@ -257,7 +255,6 @@ subprojects { tasks.named("compileTestJava").configure { // LinkedList doesn't hurt much in tests and has lots of usages options.errorprone.check("JdkObsolete", CheckSeverity.OFF) - options.errorprone.check("UnnecessaryAnonymousClass", CheckSeverity.OFF) options.errorprone.check("PreferJavaTimeOverload", CheckSeverity.OFF) options.errorprone.check("JavaUtilDate", CheckSeverity.OFF) } diff --git a/core/build.gradle b/core/build.gradle index 9778c035f5c..3e34037136e 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -108,11 +108,6 @@ plugins.withId("java") { ";>Lio/grpc/ServerBuilder;"); } } - - tasks.named("compileJmhJava").configure { - // This project targets Java 7 (no method references) - options.errorprone.check("UnnecessaryAnonymousClass", CheckSeverity.OFF) - } } tasks.register("versionFile") {