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
Issue #12923: static imports with method reference reported as unused #14548
Conversation
Github, generate report |
Github, generate site |
31efb52
to
42435df
Compare
792759b
to
0a83ff9
Compare
Github, generate site |
0a83ff9
to
a1f2551
Compare
there is something weird here https://checkstyle.semaphoreci.com/jobs/6610b4fd-4eab-445f-b602-99ad27dc56ef is saying that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to make changes to the .template files, which are used to generate the normal xdocs:
- Update template
blah.template.xml
files - Run
mvn clean verify
- Commit generated xdoc content
a1f2551
to
6717c08
Compare
@nrmancuso yes. I missed it Thank you! now CI is happy |
Github, generate site |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please extend code examples in documentation to include this update.
Items:
...style/checks/imports/unusedimports/InputUnusedImportsFromStaticMethodRefJavadocDisabled.java
Outdated
Show resolved
Hide resolved
...s/checkstyle/checks/imports/unusedimports/InputUnusedImportsFromStaticMethodRefExtended.java
Show resolved
Hide resolved
866ab0d
to
541850e
Compare
@mahfouz72 please do
From #14548 (review) |
2f050e4
to
0c79a63
Compare
src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/UnusedImportsCheck.java
Show resolved
Hide resolved
...awl/tools/checkstyle/checks/imports/unusedimports/InputUnusedImportsFromStaticMethodRef.java
Show resolved
Hide resolved
...xamples/resources/com/puppycrawl/tools/checkstyle/checks/imports/unusedimports/Example1.java
Show resolved
Hide resolved
...xamples/resources/com/puppycrawl/tools/checkstyle/checks/imports/unusedimports/Example1.java
Outdated
Show resolved
Hide resolved
1e489ea
to
1e68d3c
Compare
Github, generate site |
1e68d3c
to
4b104f7
Compare
CI is failing.
|
4b104f7
to
f1d7d4c
Compare
@rnveach done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
items:
...awl/tools/checkstyle/checks/imports/unusedimports/InputUnusedImportsFromStaticMethodRef.java
Show resolved
Hide resolved
@mahfouz72 , please rebase. |
f1d7d4c
to
d1974a0
Compare
Github, generate site |
d1974a0
to
c602744
Compare
@romani rebased on latest master |
Github, generate site |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last:
src/main/java/com/puppycrawl/tools/checkstyle/checks/imports/UnusedImportsCheck.java
Outdated
Show resolved
Hide resolved
c602744
to
5371b69
Compare
Github, generate site |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for hard work
Issue #12923:
Diff Regression config: https://gist.githubusercontent.com/mahfouz72/9516feffda197f31ee9b3da072e72161/raw/dc487895b45335b66942657e474a592d115ba3b8/imports.xml