浏览代码

HADOOP-7274. Fix typos in IOUtils. Contributed by Jonathan Eagles

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security@1102869 13f79535-47bb-0310-9956-ffa450edef68
Christopher Douglas 14 年之前
父节点
当前提交
8c319677d9
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 2 0
      CHANGES.txt
  2. 2 2
      src/core/org/apache/hadoop/io/IOUtils.java

+ 2 - 0
CHANGES.txt

@@ -19,6 +19,8 @@ Release 0.20.205.0 - unreleased
     HADOOP-7277. Add generation of run configurations to eclipse target.
     (Jeffrey Naisbitt and Philip Zeyliger via cdouglas)
 
+    HADOOP-7274. Fix typos in IOUtils. (Jonathan Eagles via cdouglas)
+
 Release 0.20.204.0 - unreleased
 
   BUG FIXES

+ 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;
     }