Skip to content

Conversation

gtoison
Copy link
Contributor

@gtoison gtoison commented Nov 26, 2024

When a method signature is created as a regex (either when the parameters or the return type were not specified), the opening bracket ([) corresponding to array types need to be escaped to get a valid regex

'[' is a special regex character, for instance used in [a-z]. Escape it for array types such as double[]
@hazendaz hazendaz added this to the SpotBugs 4.9.0 milestone Nov 26, 2024
@hazendaz hazendaz self-assigned this Nov 26, 2024
@hazendaz hazendaz merged commit 6b8495c into spotbugs:master Nov 26, 2024
15 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.

Reading bug filter file throws exception when constructor's parameter list contains an array
2 participants