8000 Exclude findbugs failing tests · spotify/google-http-java-client@9d7f0ca · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit 9d7f0ca

Browse files
committed
Exclude findbugs failing tests
1 parent 5ba978a commit 9d7f0ca

File tree

1 file changed

+126
-0
lines changed

1 file changed

+126
-0
lines changed

findbugs-exclude.xml

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<FindBugsFilter>
4+
<!-- see http://findbugs.sourceforge.net/bugDescriptions.html -->
5+
<LastVersion value="-1" relOp="NEQ"/>
6+
<!-- The following have not yet been investigated -->
7+
<!-- TODO(yanivi): investigate them -->
8+
<And>
9+
<Bug pattern="JLM_JSR166_UTILCONCURRENT_MONITORENTER"/>
10+
<!-- Synchronization performed on util.concurrent instance -->
11+
<Class name="com.google.api.client.util.Data"/>
12+
</And>
13+
<And>
14+
<Bug pattern="SE_BAD_FIELD_INNER_CLASS"/>
15+
<!-- Non-serializable class has a serializable inner class -->
16+
</And>
17+
18+
<!-- The following are known to be bugs and should be fixed -->
19+
<And>
20+
<Bug pattern="SE_BAD_FIELD"/>
21+
<!-- Non-transient non-serializable instance field in serializable class -->
22+
<Class name="com.google.api.client.http.HttpResponseException"/>
23+
</And>
24+
<And>
25+
<Bug pattern="NP_NULL_PARAM_DEREF_NONVIRTUAL"/>
26+
<!-- Non-virtual method call passes null for nonnull parameter -->
27+
<Class name="com.google.api.client.xml.atom.AbstractAtomFeedParser"/>
28+
</And>
29+
30+
<!-- The following are known to NOT be bugs and should not be fixed -->
31+
<And>
32+
<But pattern="AT_OPERATION_SEQUENCE_ON_CONCURRENT_ABSTRACTION"/>
33+
<!-- Sequence of calls to concurrent abstraction may not be atomic -->
34+
<Class name="com.google.api.client.util.Data"/>
35+
</And>
36+
<And>
37+
<Bug pattern="DM_BOOLEAN_CTOR"/>
38+
<!-- Method invokes inefficient Boolean constructor; use Boolean.valueOf(...) instead -->
39+
<Class name="com.google.api.client.util.Data"/>
40+
</And>
41+
<And>
42+
<Bug pattern="DM_STRING_VOID_CTOR"/>
43+
<!-- Method invokes inefficient new String() constructor -->
44+
<Class name="com.google.api.client.util.Data"/>
45+
</And>
46+
<And>
47+
<Bug pattern="DM_NUMBER_CTOR"/>
48+
<!-- Method invokes inefficient Number constructor; use static valueOf instead -->
49+
<Class name="com.google.api.client.util.Data"/>
50+
</And>
51+
<And>
52+
<Bug pattern="ES_COMPARING_PARAMETER_STRING_WITH_EQ"/>
53+
<!-- Comparison of String parameter using == or != -->
54+
<Class name="com.google.api.client.util.ClassInfo$1"/>
55+
</And>
56+
<And>
57+
<Bug pattern="SS_SHOULD_BE_STATIC"/>
58+
<!-- Unread field: should this field be static? -->
59+
<Class name="com.google.api.client.json.rpc2.JsonRpcRequest"/>
60+
</And>
61+
<And>
62+
<Bug pattern="DM_DEFAULT_ENCODING"/>
63+
<!-- Reliance on default encoding -->
64+
<Class name="com.google.api.client.http.MultipartRelatedContent"/>
65+
<!-- Deprecated -->
66+
</And>
67+
<And>
68+
<Bug pattern="EI_EXPOSE_REP,EI_EXPOSE_REP2"/>
69+
<!-- May expose internal representation by returning reference to mutable object -->
70+
<!-- May expose internal representation by incorporating reference to mutable object -->
71+
</And>
72+
<And>
73+
<Bug pattern="BETA_CLASS_USAGE,BETA_METHOD_USAGE"/>
74+
<!-- Usage of a &#64;Beta class or method -->
75+
<Class name="com.google.api.client.json.JsonParser"/>
76+
</And>
77+
<And>
78+
<Bug pattern="BETA_CLASS_USAGE,BETA_METHOD_USAGE"/>
79+
<Class name="com.google.api.client.http.HttpRequest"/>
80+
</And>
81+
<And>
82+
<Bug pattern="MS_PKGPROTECT"/>
83+
<!-- Field should be package protected -->
84+
<Class name="com.google.api.client.testing.http.javanet.MockHttpURLConnection"/>
85+
</And>
86+
<And>
87+
<Bug pattern="DM_STRING_CTOR"/>
88+
<!-- Method invokes inefficient new String(String) constructor -->
89+
<Class name="com.google.api.client.http.GenericUrl"/>
90+
</And>
91+
<And>
92+
<Bug pattern="DM_STRING_CTOR"/>
93+
<!-- Method invokes inefficient new String(String) constructor -->
94+
<Class name="com.google.api.client.http.HttpHeaders"/>
95+
</And>
96+
<And>
97+
<Bug pattern="DM_STRING_CTOR"/>
98+
<!-- Method invokes inefficient new String(String) constructor -->
99+
<Class name="com.google.api.client.http.UriTemplate"/>
100+
</And>
101+
<And>
102+
<Bug pattern="DM_STRING_CTOR"/>
103+
<!-- Method invokes inefficient new String(String) constructor -->
104+
<Class name="com.google.api.client.json.JsonParser"/>
105+
</And>
106+
<And>
107+
<Bug pattern="DM_STRING_CTOR"/>
108+
<!-- Method invokes inefficient new String(String) constructor -->
109+
<Class name="com.google.api.client.util.DataMap"/>
110+
</And>
111+
<And>
112+
<Bug pattern="DM_STRING_CTOR"/>
113+
<!-- Method invokes inefficient new String(String) constructor -->
114+
<Class name="com.google.api.client.util.DateTime"/>
115+
</And>
116+
<And>
117+
<Bug pattern="DM_STRING_CTOR"/>
118+
<!-- Method invokes inefficient new String(String) constructor -->
119+
<Class name="com.google.api.client.http.HttpRequest"/>
120+
</And>
121+
<And>
122+
<Bug pattern="DM_STRING_CTOR"/>
123+
<!-- Method invokes inefficient new String(String) constructor -->
124+
<Class name="com.google.api.client.xml.XmlNamespaceDictionary"/>
125+
</And>
126+
</FindBugsFilter>

0 commit comments

Comments
 (0)
0