hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oz...@apache.org
Subject hadoop git commit: HADOOP-11448. Fix findbugs warnings in FileBasedIPList. (ozawa)
Date Fri, 26 Dec 2014 06:23:44 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 7739f819a -> 1e0cfb927


HADOOP-11448. Fix findbugs warnings in FileBasedIPList. (ozawa)

(cherry picked from commit 399d25884a99f3e0b2ef65eaf9f3149d0d523f13)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/1e0cfb92
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/1e0cfb92
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/1e0cfb92

Branch: refs/heads/branch-2
Commit: 1e0cfb92783b1c42d46a820ac9a0fa05dec1e916
Parents: 7739f81
Author: Tsuyoshi Ozawa <ozawa@apache.org>
Authored: Fri Dec 26 15:20:24 2014 +0900
Committer: Tsuyoshi Ozawa <ozawa@apache.org>
Committed: Fri Dec 26 15:23:28 2014 +0900

----------------------------------------------------------------------
 hadoop-common-project/hadoop-common/CHANGES.txt                    | 2 ++
 .../src/main/java/org/apache/hadoop/util/FileBasedIPList.java      | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/1e0cfb92/hadoop-common-project/hadoop-common/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt
index 75cfcc3..418c650 100644
--- a/hadoop-common-project/hadoop-common/CHANGES.txt
+++ b/hadoop-common-project/hadoop-common/CHANGES.txt
@@ -305,6 +305,8 @@ Release 2.7.0 - UNRELEASED
     HADOOP-11283. SequenceFile.Writer can leak file descriptors in
     DistCpV1#setup(). (Varun Saxena via ozawa)
 
+    HADOOP-11448. Fix findbugs warnings in FileBasedIPList. (ozawa)
+
 Release 2.6.0 - 2014-11-18
 
   INCOMPATIBLE CHANGES

http://git-wip-us.apache.org/repos/asf/hadoop/blob/1e0cfb92/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/FileBasedIPList.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/FileBasedIPList.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/FileBasedIPList.java
index dfa514a..b0c12be 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/FileBasedIPList.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/FileBasedIPList.java
@@ -50,7 +50,7 @@ public class FileBasedIPList implements IPList {
 
   public FileBasedIPList(String fileName) {
     this.fileName = fileName;
-    String[] lines = new String[0];
+    String[] lines;
     try {
       lines = readLines(fileName);
     } catch (IOException e) {


Mime
View raw message