HADOOP-7057. IOUtils.readFully and IOUtils.skipFully have typo in exception creation's message. Contributed by Konstantin Boudnik.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1040849 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Konstantin Boudnik 2010-12-01 01:39:38 +00:00
parent 5d9ed589b5
commit ebb236ef9c
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

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