瀏覽代碼

HADOOP-7274. Fix typos in IOUtils. (Jonathan Eagles via cdouglas)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security-204@1136728 13f79535-47bb-0310-9956-ffa450edef68
Owen O'Malley 14 年之前
父節點
當前提交
10a59db386
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. 2 0
      CHANGES.txt
  2. 2 2
      src/core/org/apache/hadoop/io/IOUtils.java

+ 2 - 0
CHANGES.txt

@@ -32,6 +32,8 @@ Release 0.20.204.0 - unreleased
     HADOOP-7373. Fix {start,stop}-{dfs,mapred} and hadoop-daemons.sh from
     trying to use the wrong bin directory. (omalley)
 
+    HADOOP-7274. Fix typos in IOUtils. (Jonathan Eagles via cdouglas)
+
     HADOOP-7369. Fix permissions in tarball for sbin/* and libexec/* (omalley)
 
     MAPREDUCE-2479. Move distributed cache cleanup to a background task,

+ 2 - 2
src/core/org/apache/hadoop/io/IOUtils.java

@@ -112,7 +112,7 @@ public class IOUtils {
     while ( toRead > 0 ) {
       int ret = in.read( buf, off, toRead );
       if ( ret < 0 ) {
-        throw new IOException( "Premeture EOF from inputStream");
+        throw new IOException( "Premature EOF from inputStream");
       }
       toRead -= ret;
       off += ret;
@@ -129,7 +129,7 @@ public class IOUtils {
     while ( len > 0 ) {
       long ret = in.skip( len );
       if ( ret < 0 ) {
-        throw new IOException( "Premeture EOF from inputStream");
+        throw new IOException( "Premature EOF from inputStream");
       }
       len -= ret;
     }