GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||
GeezerVison is showing github.com — [java] Fix #6096: Detect Lombok generated equals/hashCode in Comparable by mrclmh · Pull Request #6238 · pmd/pmd Conversation
|
|
Compared to main: (comment created at 2025-11-20 21:01:40+00:00 for 8ab254e) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Not sure about the line break in the Set init line. What is the preferred max line length for the project? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
This will solve it for that rule.
optional request:
For Lombok, we actually have a bit more in mind (see #3119):
pmd/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/internal/ast/AstClassSym.java
Line 158 in 33f00ec
| public void processLombok(JavaAstProcessor processor) { |
Line 35 in 33f00ec
| for (ASTMethodDeclaration m : node.getDeclarations(ASTMethodDeclaration.class)) { |
node.getSymbol().getDeclaredMethods()) and would see then the generated methods as wellIf you like, you can give it a try, maybe in a separate PR.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
around 120 I think |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[java] OverrideBothEqualsAndHashCodeOnComparable on class with lombok.EqualsAndHashCode annotation
There was an error while loading. Please reload this page.