-
Notifications
You must be signed in to change notification settings - Fork 79
Fix PMD rule LiteralsFirstInComparisons
for compareTo*
and contentEquals
#448
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
Merged
MBoegers
merged 32 commits into
openrewrite:main
from
Pankraz76:Fix-PMD-rule-LiteralsFirstInComparisons-for-compareTo-and-contentEquals
Feb 11, 2025
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
23ce336
form
pinguin3245678 1f33b73
Use new `J.SwitchExpression` constructor
knutwannheden b38ff0a
Use new `J.SwitchExpression` constructor
knutwannheden 3725b4a
Merge remote-tracking branch 'f/Fix-PMD-rule-LiteralsFirstInCompariso…
52676bf
tmp fix invertConditional_compareToIgnoreCase
883f9cf
wip
1d3c8de
tmp fix
d33d0aa
move EqualsAvoidsNullVisitor into Recipe
pinguin3245678 a99ae40
conduct preconditions
pinguin3245678 b53e380
static import
pinguin3245678 decf84b
Merge branch 'main' into Fix-PMD-rule-LiteralsFirstInComparisons-for-…
8512dbf
duplicate retainCompareToAsToNotChangeOrder
df5a264
Merge branch 'main' into Fix-PMD-rule-LiteralsFirstInComparisons-for-…
7d9975f
undo
0ae11da
resolve comparison
d238c49
Merge branch 'main' into Fix-PMD-rule-LiteralsFirstInComparisons-for-…
d2124a5
invertConditionalButKeepComparisonOrder
dac658c
@Issue("https://github.com/openrewrite/rewrite-static-analysis/issues…
7b1b55c
@Issue("https://github.com/openrewrite/rewrite-static-analysis/issues…
21ca2f7
extend invertConditionalButKeepComparisonOrder
045ce06
keepOrderForSameType
2e556b2
remove duplication
905573f
inline
ac52710
inline
f6016dd
inline
8b8bd10
inline
74cd190
form
46f143b
Revert "form"
5818a6e
remove duplicated tests, wrapping visitor and clean-ups
MBoegers c20e777
fix style and import
MBoegers fe68ae1
Update src/main/java/org/openrewrite/staticanalysis/EqualsAvoidsNull.…
MBoegers ce96ade
reintroduced variable after GitHUb removed it..
MBoegers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
160 changes: 0 additions & 160 deletions
160
src/main/java/org/openrewrite/staticanalysis/EqualsAvoidsNullVisitor.java
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.