Skip to content

Issue #14084: fix Checker violation for nullable return#14085

Merged
romani merged 1 commit into
checkstyle:masterfrom
romani:14084-checker
Dec 6, 2023
Merged

Issue #14084: fix Checker violation for nullable return#14085
romani merged 1 commit into
checkstyle:masterfrom
romani:14084-checker

Conversation

@romani

@romani romani commented Dec 1, 2023

Copy link
Copy Markdown
Member

@nrmancuso nrmancuso left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Item:

* {@code null} otherwise.
*/
private static DetailAST getBraceAsFirstChild(DetailAST ast) {
private static @Nullable DetailAST getBraceAsFirstChild(DetailAST ast) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make annotation above method definition. We should also make a check module for this. As we grow in annotation usage, we will not want to inline all of them.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@romani assigned you for approval ^

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved, I surprised that it was not done from the beginning.

@nrmancuso nrmancuso left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

Comment thread config/import-control.xml

@rnveach rnveach left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Above.

@romani romani merged commit b8f50f6 into checkstyle:master Dec 6, 2023
@romani romani deleted the 14084-checker branch December 6, 2023 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants