Bladeren bron

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 jaren geleden
bovenliggende
commit
10a59db386
2 gewijzigde bestanden met toevoegingen van 4 en 2 verwijderingen
  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
     HADOOP-7373. Fix {start,stop}-{dfs,mapred} and hadoop-daemons.sh from
     trying to use the wrong bin directory. (omalley)
     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)
     HADOOP-7369. Fix permissions in tarball for sbin/* and libexec/* (omalley)
 
 
     MAPREDUCE-2479. Move distributed cache cleanup to a background task,
     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 ) {
     while ( toRead > 0 ) {
       int ret = in.read( buf, off, toRead );
       int ret = in.read( buf, off, toRead );
       if ( ret < 0 ) {
       if ( ret < 0 ) {
-        throw new IOException( "Premeture EOF from inputStream");
+        throw new IOException( "Premature EOF from inputStream");
       }
       }
       toRead -= ret;
       toRead -= ret;
       off += ret;
       off += ret;
@@ -129,7 +129,7 @@ public class IOUtils {
     while ( len > 0 ) {
     while ( len > 0 ) {
       long ret = in.skip( len );
       long ret = in.skip( len );
       if ( ret < 0 ) {
       if ( ret < 0 ) {
-        throw new IOException( "Premeture EOF from inputStream");
+        throw new IOException( "Premature EOF from inputStream");
       }
       }
       len -= ret;
       len -= ret;
     }
     }