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:
parent
5d9ed589b5
commit
ebb236ef9c
|
@ -374,6 +374,9 @@ Release 0.22.0 - Unreleased
|
||||||
HADOOP-6496. HttpServer sends wrong content-type for CSS files
|
HADOOP-6496. HttpServer sends wrong content-type for CSS files
|
||||||
(and others). (Todd Lipcon via tomwhite)
|
(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
|
Release 0.21.1 - Unreleased
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
|
|
|
@ -115,7 +115,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;
|
||||||
|
@ -132,7 +132,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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue