Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds Error Prone to the maven-compiler-plugin #2308

Merged
merged 10 commits into from
Feb 6, 2023
Prev Previous commit
Next Next commit
Fix the @SuppressWarnings("GetClassOnClass")
  • Loading branch information
MaicolAntali committed Feb 6, 2023
commit f1206b7181679f8e73260f41b740a7a981feaf86
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,9 @@ public void testClassSerialization() {
}

@Test
@SuppressWarnings("GetClassOnClass")
public void testClassDeserialization() {
try {
gson.fromJson("String.class", String.class.getClass());
gson.fromJson("String.class", Class.class);
fail();
} catch (UnsupportedOperationException expected) {
}
Expand Down