Skip to content

Commit

Permalink
Automatic code cleanup.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 656794179
  • Loading branch information
cpovirk authored and Error Prone Team committed Jul 27, 2024
1 parent 9884911 commit 8e39783
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 <expression> -> <body>}.
*/
@Nullable
public static Tree getCaseTreeBody(CaseTree caseTree) {
public static @Nullable Tree getCaseTreeBody(CaseTree caseTree) {
if (GET_CASE_BODY_METHOD == null) {
return null;
}
Expand All @@ -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) {
Expand Down

0 comments on commit 8e39783

Please sign in to comment.