hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From szets...@apache.org
Subject svn commit: r704291 - in /hadoop/core/branches/branch-0.18: CHANGES.txt src/hdfs/org/apache/hadoop/dfs/FSImage.java
Date Tue, 14 Oct 2008 01:38:07 GMT
Author: szetszwo
Date: Mon Oct 13 18:38:07 2008
New Revision: 704291

URL: http://svn.apache.org/viewvc?rev=704291&view=rev
Log:
HADOOP-4407. HADOOP-4395 should use a Java 1.5 API for 0.18.  (szetszwo)

Modified:
    hadoop/core/branches/branch-0.18/CHANGES.txt
    hadoop/core/branches/branch-0.18/src/hdfs/org/apache/hadoop/dfs/FSImage.java

Modified: hadoop/core/branches/branch-0.18/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.18/CHANGES.txt?rev=704291&r1=704290&r2=704291&view=diff
==============================================================================
--- hadoop/core/branches/branch-0.18/CHANGES.txt (original)
+++ hadoop/core/branches/branch-0.18/CHANGES.txt Mon Oct 13 18:38:07 2008
@@ -21,6 +21,8 @@
     HADOOP-4351. FSNamesystem.getBlockLocationsInternal throws
     ArrayIndexOutOfBoundsException. (hairong)
 
+    HADOOP-4407. HADOOP-4395 should use a Java 1.5 API for 0.18.  (szetszwo)
+
   NEW FEATURES
 
     HADOOP-2421.  Add jdiff output to documentation, listing all API

Modified: hadoop/core/branches/branch-0.18/src/hdfs/org/apache/hadoop/dfs/FSImage.java
URL: http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.18/src/hdfs/org/apache/hadoop/dfs/FSImage.java?rev=704291&r1=704290&r2=704291&view=diff
==============================================================================
--- hadoop/core/branches/branch-0.18/src/hdfs/org/apache/hadoop/dfs/FSImage.java (original)
+++ hadoop/core/branches/branch-0.18/src/hdfs/org/apache/hadoop/dfs/FSImage.java Mon Oct 13
18:38:07 2008
@@ -1371,7 +1371,7 @@
 
   static String readString_EmptyAsNull(DataInputStream in) throws IOException {
     final String s = readString(in);
-    return s.isEmpty()? null: s;
+    return s.length() == 0? null: s;
   }
 
   static byte[] readBytes(DataInputStream in) throws IOException {



Mime
View raw message