From b332c7a8edce3589bad44b3c95acdd6948eab100 Mon Sep 17 00:00:00 2001 From: Kurt Alfred Kluever Date: Fri, 26 Jun 2020 11:07:11 -0700 Subject: [PATCH] Ignore all methods in org.jooq.impl.DSL in PreferJavaTimeOverload . Fixes https://github.com/google/error-prone/issues/1694 PiperOrigin-RevId: 318505995 --- .../errorprone/bugpatterns/time/PreferJavaTimeOverload.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/google/errorprone/bugpatterns/time/PreferJavaTimeOverload.java b/core/src/main/java/com/google/errorprone/bugpatterns/time/PreferJavaTimeOverload.java index a7d606f4c11..969e1dae5ba 100644 --- a/core/src/main/java/com/google/errorprone/bugpatterns/time/PreferJavaTimeOverload.java +++ b/core/src/main/java/com/google/errorprone/bugpatterns/time/PreferJavaTimeOverload.java @@ -118,7 +118,7 @@ public final class PreferJavaTimeOverload extends BugChecker private static final Matcher IGNORED_APIS = anyOf( - staticMethod().onClass("org.jooq.impl.DSL").named("inline"), + staticMethod().onClass("org.jooq.impl.DSL").withAnyName(), // any static method under org.assertj.* staticMethod() .onClass((type, state) -> type.toString().startsWith("org.assertj."))