Suppress self-assignment errors in desugar test data
Fixes bazelbuild/bazel#4278
@@ -699,6 +699,7 @@ sh_test(
java_library(
name = "testdata",
srcs = glob(["testdata/*.java"]),
+ javacopts = ["-Xep:SelfAssignment:OFF"],
resources = ["testdata/testresource.txt"],
deps = [
":separate",
@@ -712,6 +713,7 @@ java_library(
"testdata/*.java",
"testdata/java8/**/*.java",
]),
+ javacopts = ["-Xep:SelfAssignment:OFF"],
resources = ["testdata/testresource.txt"],
deps = [
":separate",
@@ -745,6 +747,7 @@ java_library(
java_library(
name = "testdata_like_in_android_studio",
srcs = glob(["testdata/*.java"]),
+ javacopts = ["-Xep:SelfAssignment:OFF"],
resources = ["testdata/testresource.txt"],
deps = [
":libseparate.jar", # puts full Jar instead of header Jar on the classpath
@@ -758,6 +761,7 @@ java_library(
"testdata/*.java",
"testdata/java8/**/*.java",
]),
+ javacopts = ["-Xep:SelfAssignment:OFF"],
resources = ["testdata/testresource.txt"],
deps = [
":libseparate.jar", # puts full Jar instead of header Jar on the classpath
