Skip to content

Commit

Permalink
android-interop-testing: resolve build warnings (grpc#6870)
Browse files Browse the repository at this point in the history
Suppressed compiler warnings caused by protobug-javalite and errorrprone warnings from grpc-interop-testing + "throw-in-finally".
  • Loading branch information
voidzcy authored and dfawley committed Jan 15, 2021
1 parent cbcaa93 commit d8f630f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions android-interop-testing/build.gradle
Expand Up @@ -87,4 +87,14 @@ task checkStyleTest(type: Checkstyle) {

project.tasks['check'].dependsOn checkStyleMain, checkStyleTest

import net.ltgt.gradle.errorprone.CheckSeverity

tasks.withType(JavaCompile) {
options.compilerArgs += [
"-Xlint:-cast"
]
// Reuses source code from grpc-interop-testing, which targets Java 7 (no method references)
options.errorprone.check("UnnecessaryAnonymousClass", CheckSeverity.OFF)
}

configureProtoCompilation()
Expand Up @@ -53,6 +53,7 @@ protected void onPreExecute() {
tester.setUp();
}

@SuppressWarnings("Finally")
@Override
protected String doInBackground(Void... ignored) {
try {
Expand Down

0 comments on commit d8f630f

Please sign in to comment.