mirror of https://github.com/grpc/grpc-java.git
android-interop-testing: resolve build warnings (#6870)
Suppressed compiler warnings caused by protobug-javalite and errorrprone warnings from grpc-interop-testing + "throw-in-finally".
This commit is contained in:
parent
2c250ace52
commit
6c5a7df1d4
|
|
@ -87,4 +87,14 @@ task checkStyleTest(type: Checkstyle) {
|
||||||
|
|
||||||
project.tasks['check'].dependsOn checkStyleMain, checkStyleTest
|
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()
|
configureProtoCompilation()
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,7 @@ final class InteropTask extends AsyncTask<Void, Void, String> {
|
||||||
tester.setUp();
|
tester.setUp();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("Finally")
|
||||||
@Override
|
@Override
|
||||||
protected String doInBackground(Void... ignored) {
|
protected String doInBackground(Void... ignored) {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue