From 8e39783f75b908e3455851124a6a42cf7cd32258 Mon Sep 17 00:00:00 2001 From: cpovirk Date: Sat, 27 Jul 2024 14:54:05 -0700 Subject: [PATCH] Automatic code cleanup. PiperOrigin-RevId: 656794179 --- .../main/java/com/google/errorprone/util/ASTHelpers.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/check_api/src/main/java/com/google/errorprone/util/ASTHelpers.java b/check_api/src/main/java/com/google/errorprone/util/ASTHelpers.java index f164936a8c9..1460c59da53 100644 --- a/check_api/src/main/java/com/google/errorprone/util/ASTHelpers.java +++ b/check_api/src/main/java/com/google/errorprone/util/ASTHelpers.java @@ -2791,8 +2791,7 @@ public static boolean isRuleKind(CaseTree caseTree) { * Returns the statement or expression after the arrow for a {@link CaseTree} of the form: {@code * case -> }. */ - @Nullable - public static Tree getCaseTreeBody(CaseTree caseTree) { + public static @Nullable Tree getCaseTreeBody(CaseTree caseTree) { if (GET_CASE_BODY_METHOD == null) { return null; } @@ -2803,10 +2802,9 @@ public static Tree getCaseTreeBody(CaseTree caseTree) { } } - @Nullable private static final Method GET_CASE_BODY_METHOD = getGetCaseBodyMethod(); + private static final @Nullable Method GET_CASE_BODY_METHOD = getGetCaseBodyMethod(); - @Nullable - private static Method getGetCaseBodyMethod() { + private static @Nullable Method getGetCaseBodyMethod() { try { return CaseTree.class.getMethod("getBody"); } catch (NoSuchMethodException e) {