- add sources.
[platform/framework/web/crosswalk.git] / src / build / android / findbugs_filter / findbugs_exclude.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   Copyright (c) 2012 The Chromium Authors. All rights reserved.
4   Use of this source code is governed by a BSD-style license that can be
5   found in the LICENSE file.
6 -->
7
8 <!--
9 Documentation: http://findbugs.sourceforge.net/manual/filter.html
10 In particular, ~ at the start of a string means it's a regex.
11 -->
12 <FindBugsFilter>
13   <!-- Skip the generated resource classes (including nested classes). -->
14   <Match>
15     <Class name="~org\.chromium\..*\.R(\$\w+)?" />
16   </Match>
17   <Match>
18     <Class name="~org\.chromium\..*\.Manifest(\$\w+)?" />
19   </Match>
20   <!-- Ignore bugs in NativeLibraries.java (the auto-generation confuses findbugs). -->
21   <Match>
22     <Class name="~org\.chromium\.content\..*\.NativeLibraries.*?" />
23   </Match>
24   <!--
25   Ignore bugs in CleanupReferenceTest.java (redundant null check)
26   TODO(joth): Group all GC related tests and filter them out, since the null
27   check is necessary to make sure the nullification is flushed to memory.
28   -->
29   <Match>
30     <Class name="~org\.chromium\.content\..*\.CleanupReferenceTest.*?" />
31   </Match>
32   <!-- Ignore errors in JavaBridge due to reflection. -->
33   <Match>
34     <Class name="~.*\.JavaBridge.*"/>
35     <Bug code="UuF,UrF,UMAC" />
36   </Match>
37   <!-- "Struct" like classes expect to have unused public data members -->
38   <Match>
39     <Class name="~.*android_webview.*FileChooserParams"/>
40     <Bug code="UrF" />
41   </Match>
42   <!-- Ignore "reliance on default String encoding" warnings, as we're not multi-platform -->
43   <Bug pattern="DM_DEFAULT_ENCODING" />
44   <!-- Ignore bugs that are often false-positives in test code -->
45   <Match>
46     <Class name="~org\.chromium\..*Test(\$\w+)?" />
47     <Or>
48       <Bug code="DLS,UrF" />
49       <Bug pattern="DM_GC" />
50     </Or>
51   </Match>
52 </FindBugsFilter>