Skip to content

Conversation

@thomasmueller
Copy link
Member

Workaround for - what seems to be - a JDK bug

@github-actions
Copy link

Commit-Check ✔️

@nfsantos
Copy link
Contributor

Can you explain what the bug is and how this PR avoids the issue?

@nfsantos
Copy link
Contributor

For consistency, I'd recommend to also make static the method protect() and to reorder the methods to follow the conventions of static methods appearing first in the class.

protected String quote(String pathOrName) {
protected static String quote(String pathOrName) {
pathOrName = pathOrName.replaceAll("]", "]]");
return '[' + pathOrName + ']';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While we are at it, I would collapse that into a single line, avoiding the reassignment...

@sonarqubecloud
Copy link

@thomasmueller thomasmueller merged commit 0a6389f into trunk Feb 26, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants