Browse Source

The changes in src/test/findbugsExcludeFile.xml by HADOOP-5864 were disappeared after project split.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hdfs/trunk@797235 13f79535-47bb-0310-9956-ffa450edef68
Tsz-wo Sze 16 years ago
parent
commit
3842ce9b76
1 changed files with 10 additions and 2 deletions
  1. 10 2
      src/test/findbugsExcludeFile.xml

+ 10 - 2
src/test/findbugsExcludeFile.xml

@@ -207,9 +207,17 @@
        <Bug pattern="OBL_UNSATISFIED_OBLIGATION" />
      </Match>
 
+     <!--
+       CreateBlockWriteStreams and getTmpInputStreams are pretty much like a stream constructor.
+       The newly created streams are not supposed to be closed in the constructor. So ignore
+       the OBL warning.
+     -->
      <Match>
-       <Class name="org.apache.hadoop.examples.ContextFactory" />
-       <Method name="setAttributes" />
+       <Class name="org.apache.hadoop.hdfs.server.datanode.FSDataset" />
+       <Or>
+         <Method name="createBlockWriteStreams" />
+         <Method name="getTmpInputStreams" />
+       </Or>
        <Bug pattern="OBL_UNSATISFIED_OBLIGATION" />
      </Match>