From 3cd753fcc45943b6b7238ad61d92547076fc04f3 Mon Sep 17 00:00:00 2001 From: Jake Wharton Date: Tue, 14 Feb 2017 20:58:58 -0500 Subject: [PATCH] Suppress warning about calling getClass() on annotation. --- moshi/src/test/java/com/squareup/moshi/TypesTest.java | 1 + pom.xml | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/moshi/src/test/java/com/squareup/moshi/TypesTest.java b/moshi/src/test/java/com/squareup/moshi/TypesTest.java index 199680a..01e38d0 100644 --- a/moshi/src/test/java/com/squareup/moshi/TypesTest.java +++ b/moshi/src/test/java/com/squareup/moshi/TypesTest.java @@ -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 = diff --git a/pom.xml b/pom.xml index 09016e4..ddf1a27 100644 --- a/pom.xml +++ b/pom.xml @@ -80,7 +80,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.3 + 3.6.1 javac-with-errorprone true @@ -91,12 +91,12 @@ org.codehaus.plexus plexus-compiler-javac-errorprone - 2.8 + 2.8.1 com.google.errorprone error_prone_core - 2.0.15 + 2.0.16