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
NoWhitespaceAfter false positive on synchronized method #12486
Comments
@rnveach Oops it seems you edited my comments and I edited them back behind, sorry. Don't hesitate if you think I'm missing some important information. |
We ask for issues to reported in our format https://checkstyle.org/report_issue.html#How_to_report_a_bug.3F |
@rnveach Thanks. I put back the output you've added previously. Hope it is good. |
I am on it |
nrmancuso
added a commit
to nrmancuso/checkstyle
that referenced
this issue
Dec 2, 2022
nrmancuso
added a commit
to nrmancuso/checkstyle
that referenced
this issue
Dec 2, 2022
nrmancuso
added a commit
to nrmancuso/checkstyle
that referenced
this issue
Dec 2, 2022
nrmancuso
added a commit
to nrmancuso/checkstyle
that referenced
this issue
Dec 2, 2022
nrmancuso
added a commit
to nrmancuso/checkstyle
that referenced
this issue
Dec 2, 2022
nrmancuso
added a commit
to nrmancuso/checkstyle
that referenced
this issue
Dec 2, 2022
nrmancuso
added a commit
to nrmancuso/checkstyle
that referenced
this issue
Dec 7, 2022
nrmancuso
added a commit
to nrmancuso/checkstyle
that referenced
this issue
Dec 7, 2022
nrmancuso
added a commit
to nrmancuso/checkstyle
that referenced
this issue
Dec 7, 2022
nrmancuso
added a commit
to nrmancuso/checkstyle
that referenced
this issue
Dec 10, 2022
romani
pushed a commit
that referenced
this issue
Dec 10, 2022
romani
changed the title
NoWhitespaceAfter synchronized method
NoWhitespaceAfter false positive on synchronized method
Dec 31, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I have the following checkstyle configuration in
pom.xml
:With a
mvn verify
, the following piece of code reports an error'synchronized' is followed by whitespace
:It seems to be a false positive because the check should only apply on structures like:
Here is the output:
Thanks & best regards.
The text was updated successfully, but these errors were encountered: