hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r1040849 - in /hadoop/common/trunk: CHANGES.txt src/java/org/apache/hadoop/io/IOUtils.java
Date Wed, 01 Dec 2010 01:39:39 GMT
Author: cos
Date: Wed Dec  1 01:39:38 2010
New Revision: 1040849

URL: http://svn.apache.org/viewvc?rev=1040849&view=rev
Log:
HADOOP-7057. IOUtils.readFully and IOUtils.skipFully have typo in exception creation's message.
Contributed by Konstantin Boudnik.

Modified:
    hadoop/common/trunk/CHANGES.txt
    hadoop/common/trunk/src/java/org/apache/hadoop/io/IOUtils.java

Modified: hadoop/common/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/CHANGES.txt?rev=1040849&r1=1040848&r2=1040849&view=diff
==============================================================================
--- hadoop/common/trunk/CHANGES.txt (original)
+++ hadoop/common/trunk/CHANGES.txt Wed Dec  1 01:39:38 2010
@@ -374,6 +374,9 @@ Release 0.22.0 - Unreleased
     HADOOP-6496. HttpServer sends wrong content-type for CSS files
     (and others). (Todd Lipcon via tomwhite)
 
+    HADOOP-7057. IOUtils.readFully and IOUtils.skipFully have typo in
+    exception creation's message. (cos)
+
 Release 0.21.1 - Unreleased
 
   IMPROVEMENTS

Modified: hadoop/common/trunk/src/java/org/apache/hadoop/io/IOUtils.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/src/java/org/apache/hadoop/io/IOUtils.java?rev=1040849&r1=1040848&r2=1040849&view=diff
==============================================================================
--- hadoop/common/trunk/src/java/org/apache/hadoop/io/IOUtils.java (original)
+++ hadoop/common/trunk/src/java/org/apache/hadoop/io/IOUtils.java Wed Dec  1 01:39:38 2010
@@ -115,7 +115,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;
@@ -132,7 +132,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;
     }



Mime
View raw message