Skip to content

Commit

Permalink
Upgrade errorprone from 2.14.0 to 2.16
Browse files Browse the repository at this point in the history
we need to fix the following violation:

StubbingWithCustomAnswerTest.java:113: error: [DoNotCall] Calling getClass on Method returns the Class object for Method,
you probably meant to retrieve the class containing the method represented by this Method using getDeclaringClass
  • Loading branch information
XN137 committed Nov 21, 2022
1 parent 3faa002 commit 127e195
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle/dependencies.gradle
Expand Up @@ -6,7 +6,7 @@ def versions = [:]

versions.bytebuddy = '1.12.16'
versions.junitJupiter = '5.9.1'
versions.errorprone = '2.14.0'
versions.errorprone = '2.16'

libraries.junit4 = 'junit:junit:4.13.2'
libraries.junitJupiterApi = "org.junit.jupiter:junit-jupiter-api:${versions.junitJupiter}"
Expand Down
Expand Up @@ -110,7 +110,7 @@ public void shouldMakeSureTheInterfaceDoesNotChange() throws Exception {
new Answer<String>() {
public String answer(InvocationOnMock invocation) throws Throwable {
assertTrue(invocation.getArguments().getClass().isArray());
assertEquals(Method.class, invocation.getMethod().getClass());
assertEquals(IMethods.class, invocation.getMethod().getDeclaringClass());

return "assertions passed";
}
Expand Down

0 comments on commit 127e195

Please sign in to comment.