Skip to content

Commit

Permalink
Enable errorprone's ExpectedExceptionChecker
Browse files Browse the repository at this point in the history
Since we migrated to a newer Junit (even later Junit 4 versions would have had assertThrows) and Java 8, we can use assertThrows.
  • Loading branch information
Oberon00 authored Aug 5, 2020
1 parent b59a10e commit 18dc072
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ configure(opentelemetryProjects) {
// Yep, we're using an obsolete JDK.
it.options.errorprone.disable("JdkObsolete")

// We prefer ExpectedException to assertThrows
it.options.errorprone.disable("ExpectedExceptionChecker")
// "-Xep:ExpectedExceptionRefactoring:OFF"

// AutoValueImmutableFields suggests returning Guava types from API methods
it.options.errorprone.disable("AutoValueImmutableFields")
// "-Xep:AutoValueImmutableFields:OFF"
Expand Down

0 comments on commit 18dc072

Please sign in to comment.