HDFS-10717. Fix findbugs warnings of hadoop-hdfs-client in branch-2. Contributed by Akira Ajisaka.

(cherry picked from commit 6ead6f3bb8)
This commit is contained in:
Kihwal Lee 2016-08-04 12:36:51 -05:00
parent ad29c96075
commit eb9af6ca34
2 changed files with 3 additions and 1 deletions

View File

@ -1,9 +1,12 @@
<FindBugsFilter> <FindBugsFilter>
<Match> <Match>
<Or> <Or>
<Class name="org.apache.hadoop.fs.BlockStorageLocation"/>
<Class name="org.apache.hadoop.fs.HdfsVolumeId"/>
<Class name="org.apache.hadoop.fs.XAttr"/> <Class name="org.apache.hadoop.fs.XAttr"/>
<Class name="org.apache.hadoop.fs.XAttr$Builder"/> <Class name="org.apache.hadoop.fs.XAttr$Builder"/>
<Class name="org.apache.hadoop.hdfs.inotify.EventBatch"/> <Class name="org.apache.hadoop.hdfs.inotify.EventBatch"/>
<Class name="org.apache.hadoop.hdfs.protocol.HdfsBlocksMetadata"/>
<Class name="org.apache.hadoop.hdfs.protocol.HdfsFileStatus"/> <Class name="org.apache.hadoop.hdfs.protocol.HdfsFileStatus"/>
<Class name="org.apache.hadoop.hdfs.protocol.LocatedBlock"/> <Class name="org.apache.hadoop.hdfs.protocol.LocatedBlock"/>
<Class name="org.apache.hadoop.hdfs.protocol.BlockStoragePolicy"/> <Class name="org.apache.hadoop.hdfs.protocol.BlockStoragePolicy"/>

View File

@ -404,7 +404,6 @@ class DataStreamer extends Daemon {
ByteArrayManager byteArrayManage, ByteArrayManager byteArrayManage,
boolean isAppend, String[] favoredNodes, boolean isAppend, String[] favoredNodes,
EnumSet<AddBlockFlag> flags) { EnumSet<AddBlockFlag> flags) {
this.block = block;
this.dfsClient = dfsClient; this.dfsClient = dfsClient;
this.src = src; this.src = src;
this.progress = progress; this.progress = progress;