Browse Source

HADOOP-16386. FindBugs warning in branch-2: GlobalStorageStatistics defines non-transient non-serializable instance field map.

Signed-off-by: Masatake Iwasaki <iwasakims@apache.org>
(cherry picked from commit 62fdfaf0931aeee79ecbd99c870d8c131208c3f7)
Masatake Iwasaki 5 years ago
parent
commit
6b544450a5

+ 6 - 0
hadoop-common-project/hadoop-common/dev-support/findbugsExcludeFile.xml

@@ -207,6 +207,12 @@
        <Bug pattern="BC_UNCONFIRMED_CAST" />
      </Match>
 
+     <Match>
+       <Class name="org.apache.hadoop.fs.GlobalStorageStatistics" />
+       <Field name="map" />
+       <Bug pattern="SE_BAD_FIELD" />
+     </Match>
+
      <!--
         The compareTo method is actually a dummy method that just
         throws excpetions. So, no need to override equals. Ignore