Repository navigation
Expand file tree
/
Copy pathspotbugs-exclude.xml
More file actions
118 lines (110 loc) · 3.93 KB
/
Copy pathspotbugs-exclude.xml
File metadata and controls
118 lines (110 loc) · 3.93 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?xml version="1.0" encoding="UTF-8"?>
<FindBugsFilter>
<!-- Ignored bug categories -->
<Bug pattern="SE_NO_SERIALVERSIONID"/>
<Bug pattern="EI_EXPOSE_REP"/>
<Bug pattern="EI_EXPOSE_REP2"/>
<Bug pattern="CT_CONSTRUCTOR_THROW"/>
<!--
The DOM is not thread-safe by design; the scripts of a page are executed synchronized on the page.
The fields are listed one by one, new fields of these classes are still reported.
-->
<Match>
<Bug pattern="AT_STALE_THREAD_WRITE_OF_PRIMITIVE"/>
<Or>
<And>
<Class name="org.htmlunit.html.DomNode"/>
<Or>
<Field name="startLineNumber_"/>
<Field name="startColumnNumber_"/>
<Field name="endLineNumber_"/>
<Field name="endColumnNumber_"/>
<Field name="attachedToPage_"/>
</Or>
</And>
<And>
<Class name="org.htmlunit.html.DomElement"/>
<Or>
<Field name="mouseOver_"/>
<Field name="writingCssomStyle_"/>
</Or>
</And>
<And>
<Class name="org.htmlunit.html.HtmlElement"/>
<Or>
<Field name="shiftPressed_"/>
<Field name="ctrlPressed_"/>
<Field name="altPressed_"/>
<Field name="metaPressed_"/>
</Or>
</And>
<And>
<Class name="org.htmlunit.html.HtmlPage"/>
<Or>
<Field name="autofocusAfterLoad_"/>
<Field name="autofocusProcessed_"/>
</Or>
</And>
<And>
<Class name="org.htmlunit.css.CssStyleSheet"/>
<Field name="enabled_"/>
</And>
<And>
<Class name="org.htmlunit.platform.canvas.rendering.AwtRenderingBackend"/>
<Or>
<Field name="globalAlpha_"/>
<Field name="lineWidth_"/>
</Or>
</And>
</Or>
</Match>
<!--
The filter type org.w3c.dom.traversal.NodeFilter is part of the public api and can't be changed;
the filters created by HtmlUnit (javascript) are serializable.
-->
<Match>
<Bug pattern="SE_BAD_FIELD"/>
<Or>
<Class name="org.htmlunit.html.DomNodeIterator"/>
<Class name="org.htmlunit.html.HtmlDomTreeWalker"/>
</Or>
<Field name="filter_"/>
</Match>
<!--
Ignored for the moment: identity check against DomElement.ATTRIBUTE_NOT_DEFINED.
-->
<Match>
<Bug pattern="ES_COMPARING_PARAMETER_STRING_WITH_EQ"/>
<Class name="org.htmlunit.html.csp.ContentSecurityPolicy"/>
<Or>
<Method name="allowsObject"/>
<Method name="allowsMedia"/>
</Or>
</Match>
<!--
HttpClientCookie is only a carrier of the HttpClient cookie; the identity of a cookie is
name, domain and path (Cookie.equals()), a HttpClientCookie has to be equal to a Cookie
with the same identity.
-->
<Match>
<Bug pattern="EQ_DOESNT_OVERRIDE_EQUALS"/>
<Class name="org.htmlunit.httpclient.HttpClientCookie"/>
</Match>
<!--
The identity check of the strings is an intended shortcut (performance);
the result is the same without it.
-->
<Match>
<Bug pattern="ES_COMPARING_PARAMETER_STRING_WITH_EQ"/>
<Class name="org.htmlunit.util.StringUtils"/>
<Or>
<Method name="startsWithIgnoreCase"/>
<Method name="endsWithIgnoreCase"/>
<Method name="containsIgnoreCase"/>
</Or>
</Match>
<!-- Exclude org.htmlunit.util.brotli package -->
<Match>
<Package name="org.htmlunit.util.brotli"/>
</Match>
</FindBugsFilter>