Skip to content

Commit

Permalink
Bump versions.errorprone from 2.5.1 to 2.6.0 (#2250)
Browse files Browse the repository at this point in the history
Bumps `versions.errorprone` from 2.5.1 to 2.6.0.

Updates `error_prone_core` from 2.5.1 to 2.6.0
- [Release notes](https://github.com/google/error-prone/releases)
- [Commits](google/error-prone@v2.5.1...v2.6.0)

Updates `error_prone_test_helpers` from 2.5.1 to 2.6.0
- [Release notes](https://github.com/google/error-prone/releases)
- [Commits](google/error-prone@v2.5.1...v2.6.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tim van der Lippe <tvanderlippe@google.com>
  • Loading branch information
dependabot[bot] and TimvdLippe committed Apr 1, 2021
1 parent ca92be6 commit 7f036eb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gradle/dependencies.gradle
Expand Up @@ -6,7 +6,7 @@ def versions = [:]

versions.bytebuddy = '1.10.20'
versions.junitJupiter = '5.7.1'
versions.errorprone = '2.5.1'
versions.errorprone = '2.6.0'

libraries.junit4 = 'junit:junit:4.13.2'
libraries.junitJupiterApi = "org.junit.jupiter:junit-jupiter-api:${versions.junitJupiter}"
Expand Down
Expand Up @@ -117,16 +117,22 @@ public void multiple_empty_implementations() throws Exception {

@Test
public void problems_loading_impl() throws Exception {
String fileName = "xxx";
File f = tmp.newFile(fileName);

// when
IOUtil.writeText("Bar", f);

when(switcher.isEnabled(anyString())).thenThrow(new RuntimeException("Boo!"));

try {
// when
finder.findPluginClass(asList(new File("xxx").toURI().toURL()));
finder.findPluginClass(asList(f.toURI().toURL()));
// then
fail();
} catch (Exception e) {
assertThat(e).hasMessageContaining("xxx");
e.getCause().getMessage().equals("Boo!");
assertThat(e).hasMessageContaining(fileName);
assertThat(e.getCause()).hasMessage("Boo!");
}
}
}
Expand Up @@ -8,7 +8,6 @@

import com.google.auto.service.AutoService;
import com.google.errorprone.BugPattern;
import com.google.errorprone.BugPattern.ProvidesFix;
import com.google.errorprone.BugPattern.SeverityLevel;
import com.google.errorprone.VisitorState;
import com.google.errorprone.bugpatterns.BugChecker;
Expand Down Expand Up @@ -38,8 +37,7 @@
+ " https://www.javadoc.io/doc/org.mockito/mockito-core/. If you believe that there"
+ " is no replacement available in the public API for your use-case, contact the"
+ " Mockito team at https://github.com/mockito/mockito/issues.",
severity = SeverityLevel.WARNING,
providesFix = ProvidesFix.REQUIRES_HUMAN_ATTENTION)
severity = SeverityLevel.WARNING)
public class MockitoInternalUsage extends BugChecker implements MemberSelectTreeMatcher {

private static final Matcher<Tree> INSIDE_MOCKITO = packageStartsWith("org.mockito");
Expand Down

0 comments on commit 7f036eb

Please sign in to comment.