mirror of https://github.com/grpc/grpc-java.git
bazel: Restore DoNotCall ErrorProne check
In e08b9db20 we added `@DoNotCall` annotations to some call sites, but
Bazel used an older version of ErrorProne that complained at times it
shouldn't. The minimum version of Bazel we test/support is now Bazel 6,
well past Bazel 3.4+.
This commit is contained in:
parent
aafab74087
commit
805cad3782
|
|
@ -6,7 +6,6 @@ java_library(
|
||||||
"src/main/java/**/*.java",
|
"src/main/java/**/*.java",
|
||||||
"src/context/java/**/*.java",
|
"src/context/java/**/*.java",
|
||||||
]),
|
]),
|
||||||
javacopts = ["-Xep:DoNotCall:OFF"], # Remove once requiring Bazel 3.4.0+; allows non-final
|
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = [
|
deps = [
|
||||||
artifact("com.google.code.findbugs:jsr305"),
|
artifact("com.google.code.findbugs:jsr305"),
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,6 @@ java_library(
|
||||||
srcs = glob([
|
srcs = glob([
|
||||||
"src/main/java/io/grpc/internal/*.java",
|
"src/main/java/io/grpc/internal/*.java",
|
||||||
]),
|
]),
|
||||||
javacopts = ["-Xep:DoNotCall:OFF"], # Remove once requiring Bazel 3.4.0+; allows non-final
|
|
||||||
resources = glob([
|
resources = glob([
|
||||||
"src/bazel-internal/resources/**",
|
"src/bazel-internal/resources/**",
|
||||||
]),
|
]),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue