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>
Masatake Iwasaki 5 years ago
parent
commit
62fdfaf093

+ 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