-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspotbugs-exclude.xml
More file actions
25 lines (25 loc) · 872 Bytes
/
spotbugs-exclude.xml
File metadata and controls
25 lines (25 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0" encoding="UTF-8"?>
<FindBugsFilter>
<!--
False Positive: Dead Local Store (DLS_DEAD_LOCAL_STORE)
Reason: SpotBugs 4.8.x has known issues with Java 21 Record Patterns / Pattern Matching for Switch.
It incorrectly identifies deconstructed components as unused dead stores.
-->
<Match>
<Bug pattern="DLS_DEAD_LOCAL_STORE" />
<Source name="~.*\.java" />
<Or>
<And>
<Class name="~.*TaxCalculationService" />
<Method name="calculateDeductions" />
</And>
<And>
<Class name="~.*PersonService" />
<Or>
<Method name="calculateMonthlyIncome" />
<Method name="mapToEntity" />
</Or>
</And>
</Or>
</Match>
</FindBugsFilter>