Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic code cleanup. #4505

Merged
merged 1 commit into from
Jul 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading