Skip to content

Commit

Permalink
Add -implicit:class to several test methods in ExtensionTest to work …
Browse files Browse the repository at this point in the history
…around a compiler warning that causes test failures. See discussion in #407.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=141184041
  • Loading branch information
eamonnmcmanus authored and ronshapiro committed Dec 6, 2016
1 parent f6ee7ab commit 651aa3a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public void testDoesntRaiseWarningForConsumedProperties() {
" }",
"}");
assertThat(impl)
.withCompilerOptions("-Xlint:-processing")
.withCompilerOptions("-Xlint:-processing", "-implicit:class")
.processedWith(new AutoValueProcessor(ImmutableList.of(new FooExtension())))
.compilesWithoutWarnings();
}
Expand All @@ -187,7 +187,7 @@ public void testDoesntRaiseWarningForToBuilder() {
" }",
"}");
assertThat(impl)
.withCompilerOptions("-Xlint:-processing")
.withCompilerOptions("-Xlint:-processing", "-implicit:class")
.processedWith(new AutoValueProcessor(ImmutableList.of(new FooExtension())))
.compilesWithoutWarnings();
}
Expand Down Expand Up @@ -332,7 +332,7 @@ public void testConsumeMethodWithArguments() throws Exception {
" abstract void writeToParcel(Object parcel, int flags);",
"}");
assertThat(javaFileObject)
.withCompilerOptions("-Xlint:-processing")
.withCompilerOptions("-Xlint:-processing", "-implicit:class")
.processedWith(
new AutoValueProcessor(ImmutableList.of(new FakeWriteToParcelExtension())))
.compilesWithoutWarnings();
Expand Down Expand Up @@ -504,7 +504,7 @@ private void doTestBadJarDoesntBlowUp(File badJar) throws IOException {
"public abstract class Baz {",
"}");
SuccessfulCompilationClause success = assertThat(javaFileObject)
.withCompilerOptions("-Xlint:-processing")
.withCompilerOptions("-Xlint:-processing", "-implicit:class")
.processedWith(new AutoValueProcessor(badJarLoader))
.compilesWithoutError();
success.withWarningContaining(
Expand Down

0 comments on commit 651aa3a

Please sign in to comment.