Pārlūkot izejas kodu

HADOOP-12016. Typo in FileSystem::listStatusIterator. Contributed by Arthur Vigil.

Jakob Homan 10 gadi atpakaļ
vecāks
revīzija
4fc942a84f

+ 3 - 0
hadoop-common-project/hadoop-common/CHANGES.txt

@@ -218,6 +218,9 @@ Trunk (Unreleased)
     HADOOP-10993. Dump java command line to *.out file
     (Kengo Seki via vinayakumarb)
 
+    HADOOP-12016. Typo in FileSystem::listStatusIterator 
+    (Arthur Vigil via jghoman)
+
   BUG FIXES
 
     HADOOP-11473. test-patch says "-1 overall" even when all checks are +1

+ 1 - 1
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java

@@ -1720,7 +1720,7 @@ public abstract class FileSystem extends Configured implements Closeable {
       @Override
       public LocatedFileStatus next() throws IOException {
         if (!hasNext()) {
-          throw new NoSuchElementException("No more entry in " + f);
+          throw new NoSuchElementException("No more entries in " + f);
         }
         FileStatus result = stats[i++];
         BlockLocation[] locs = result.isFile() ?