SONARJAVA-6305 Fix the expected exceptions filter to work without semantic information#5626
SONARJAVA-6305 Fix the expected exceptions filter to work without semantic information#5626aurelien-coet-sonarsource wants to merge 6 commits into
Conversation
Agentic Analysis: Early ResultsAgentic Analysis and Context Augmentation are available on your project. Here are some issues that could have been prevented. Follow the links to learn how to put them into action. 5 issue(s) found across 1 file(s):
Analyzed by SonarQube Agentic Analysis in 5.5 s |
Code Review ✅ Approved 2 resolved / 2 findingsFixes the expected exceptions filter to work without semantic information by adding guards to argument index accesses and reducing cognitive complexity. Duplicate test method names and unchecked index access issues have been resolved. ✅ 2 resolved✅ Quality: Duplicate method name in test file
✅ Edge Case: Unchecked argument index access may throw IndexOutOfBoundsException
OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
|




Summary by Gitar
MethodMatchers(requiring semantic data) with method name string matching; converted from type-based checks to simple name comparisons. Changes exception matching from type hierarchy checks to simple string set lookups for robustness.expectedExceptionsparameter.This will update automatically on new commits.