Suppress warning about calling getClass() on annotation.

This commit is contained in:
Jake Wharton 2017-02-14 20:58:58 -05:00
parent 56bdbe0372
commit 3cd753fcc4
2 changed files with 4 additions and 3 deletions

View file

@ -209,6 +209,7 @@ public final class TypesTest {
.containsExactly(String.class, Integer.class);
}
@SuppressWarnings("GetClassOnAnnotation") // Explicitly checking for proxy implementation.
@Test public void createJsonQualifierImplementation() throws Exception {
TestQualifier actual = Types.createJsonQualifierImplementation(TestQualifier.class);
TestQualifier expected =

View file

@ -80,7 +80,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<version>3.6.1</version>
<configuration>
<compilerId>javac-with-errorprone</compilerId>
<forceJavacCompilerUse>true</forceJavacCompilerUse>
@ -91,12 +91,12 @@
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-compiler-javac-errorprone</artifactId>
<version>2.8</version>
<version>2.8.1</version>
</dependency>
<dependency>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_core</artifactId>
<version>2.0.15</version>
<version>2.0.16</version>
</dependency>
</dependencies>
</plugin>