Pull #13505: Restore usage of TreeSet#13505
Merged
romani merged 1 commit intocheckstyle:masterfrom Aug 4, 2023
stoyanK7:copypasta
Merged
Pull #13505: Restore usage of TreeSet#13505romani merged 1 commit intocheckstyle:masterfrom stoyanK7:copypasta
romani merged 1 commit intocheckstyle:masterfrom
stoyanK7:copypasta
Conversation
Contributor
Author
|
I will open new issue as suggested in #13423 (comment) after this is merged.
But isn't the current way of having a list and sorting it good enough? |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
As suggested in #13423 (comment)
In #13423 (comment) there is a thread about a chunk of code that is a direct copy of those two:
checkstyle/src/test/java/com/puppycrawl/tools/checkstyle/internal/utils/CheckUtil.java
Lines 211 to 213 in ec5cd7e
checkstyle/src/test/java/com/puppycrawl/tools/checkstyle/internal/XdocsPagesTest.java
Lines 1381 to 1389 in 0c2ab53
There was some uncertainty as to why
TreeSetis used, but @rnveach explained that in #13423 (comment)This PR restores the check message keys extraction process to use TreeSet.