Skip to content

Commit

Permalink
upgrade errorprone static analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed Aug 11, 2024
1 parent 2c277c1 commit da161c2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public void afterInvocation(IInvokedMethod method, ITestResult testResult) {
private void validate(ITestResult testResult) {
CacheContext context = Arrays.stream(testResult.getParameters())
.filter(CacheContext.class::isInstance)
.findFirst().map(param -> (CacheContext) param)
.findFirst().map(CacheContext.class::cast)
.orElse(null);
if (context != null) {
awaitExecutor(context);
Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ coveralls = "2.12.2"
dependency-check = "10.0.3"
eclipse-collections = "12.0.0.M3"
ehcache3 = "3.10.8"
errorprone = "2.29.2"
errorprone = "2.30.0"
errorprone-plugin = "4.0.1"
errorprone-support = "0.17.0"
errorprone-support = "0.18.0"
expiring-map = "0.5.11"
fast-filter = "1.0.2"
fastutil = "8.5.14"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ fun disabledChecks() = listOf(
)
fun enabledChecks() = listOf(
"AssertFalse",
"AutoValueBoxedValues",
"BanClassLoader",
"BuilderReturnThis",
"CatchingUnchecked",
Expand All @@ -97,6 +98,7 @@ fun enabledChecks() = listOf(
"ComparisonContractViolated",
"CannotMockFinalClass",
"CannotMockFinalMethod",
"DefaultLocale",
"DepAnn",
"EmptyIf",
"EqualsBrokenForNull",
Expand Down Expand Up @@ -142,6 +144,7 @@ fun enabledChecks() = listOf(
"YodaCondition",
)
fun disabledRules() = listOf(
"AssertJBigDecimalRules",
"ImmutableListRules\\\$ImmutableListBuilder",
"ImmutableListRules\\\$ImmutableListOf\\d*",
"ImmutableMapRules\\\$ImmutableMapBuilder",
Expand Down

0 comments on commit da161c2

Please sign in to comment.