Skip to content

Commit 281ec6a

Browse files
Jakub Urbanamedee
authored andcommitted
Refine Findbugs filters in barcodes module
QA-1127
1 parent fc671d8 commit 281ec6a

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

barcodes/findbugs-filter.xml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,62 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<FindBugsFilter>
33
<Match>
4+
<Class name="com.itextpdf.barcodes.BarcodeDataMatrix"/>
5+
<Method name="EdifactEncodation"/>
46
<Bug pattern="CC_CYCLOMATIC_COMPLEXITY"/>
57
</Match>
68
<Match>
9+
<Class name="com.itextpdf.barcodes.Barcode128"/>
10+
<Method name="setCode"/>
711
<Bug pattern="DM_BOXED_PRIMITIVE_TOSTRING"/>
812
</Match>
913
<Match>
14+
<Or>
15+
<And>
16+
<Class name="com.itextpdf.barcodes.BarcodeDataMatrix"/>
17+
<Method name="setCode" params="java.lang.String"/>
18+
</And>
19+
<And>
20+
<Class name="com.itextpdf.barcodes.BarcodeQRCode"/>
21+
<Method name="regenerate"/>
22+
</And>
23+
</Or>
1024
<Bug pattern="EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS"/>
1125
</Match>
1226
<Match>
27+
<Class name="com.itextpdf.barcodes.BarcodeEAN"/>
28+
<Method name="convertUPCAtoUPCE"/>
1329
<Bug pattern="LSC_LITERAL_STRING_COMPARISON"/>
1430
</Match>
1531
<Match>
32+
<Or>
33+
<And>
34+
<Class name="com.itextpdf.barcodes.BarcodePDF417"/>
35+
<Or>
36+
<Method name="append" params="int,int"/>
37+
<Method name="dumpList"/>
38+
</Or>
39+
</And>
40+
<And>
41+
<Or>
42+
<Class name="com.itextpdf.barcodes.qrcode.BitArray"/>
43+
<Class name="com.itextpdf.barcodes.qrcode.BitMatrix"/>
44+
<Class name="com.itextpdf.barcodes.qrcode.BitVector"/>
45+
<Class name="com.itextpdf.barcodes.qrcode.ByteMatrix"/>
46+
<Class name="com.itextpdf.barcodes.qrcode.GF256Poly"/>
47+
<Class name="com.itextpdf.barcodes.qrcode.QRCode"/>
48+
</Or>
49+
<Method name="toString"/>
50+
</And>
51+
</Or>
1652
<Bug pattern="LSYC_LOCAL_SYNCHRONIZED_COLLECTION"/>
1753
</Match>
1854
<Match>
55+
<Class name="com.itextpdf.barcodes.BarcodePostnet"/>
56+
<Or>
57+
<Field name="TYPE_PLANET"/>
58+
<Field name="TYPE_POSTNET"/>
59+
</Or>
1960
<Bug pattern="MS_SHOULD_BE_FINAL"/>
2061
</Match>
2162
</FindBugsFilter>

0 commit comments

Comments
 (0)