|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2015 the original author or authors. |
| 2 | + * Copyright 2002-2016 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
@@ -361,7 +361,7 @@ public FastByteArrayInputStream(FastByteArrayOutputStream fastByteArrayOutputStr
|
361 | 361 | @Override
|
362 | 362 | public int read() {
|
363 | 363 | if (this.currentBuffer == null) {
|
364 |
| - // this stream doesn't have any data in it |
| 364 | + // This stream doesn't have any data in it... |
365 | 365 | return -1;
|
366 | 366 | }
|
367 | 367 | else {
|
@@ -412,8 +412,8 @@ else if (off < 0) {
|
412 | 412 | }
|
413 | 413 | else {
|
414 | 414 | if (this.currentBuffer == null) {
|
415 |
| - // this stream doesn't have any data in it |
416 |
| - return 0; |
| 415 | + // This stream doesn't have any data in it... |
| 416 | + return -1; |
417 | 417 | }
|
418 | 418 | else {
|
419 | 419 | if (this.nextIndexInCurrentBuffer < this.currentBufferLength) {
|
@@ -456,7 +456,7 @@ else if (n < 0) {
|
456 | 456 | }
|
457 | 457 | int len = (int) n;
|
458 | 458 | if (this.currentBuffer == null) {
|
459 |
| - // this stream doesn't have any data in it |
| 459 | + // This stream doesn't have any data in it... |
460 | 460 | return 0;
|
461 | 461 | }
|
462 | 462 | else {
|
@@ -506,7 +506,7 @@ public void updateMessageDigest(MessageDigest messageDigest) {
|
506 | 506 | */
|
507 | 507 | public void updateMessageDigest(MessageDigest messageDigest, int len) {
|
508 | 508 | if (this.currentBuffer == null) {
|
509 |
| - // this stream doesn't have any data in it |
| 509 | + // This stream doesn't have any data in it... |
510 | 510 | return;
|
511 | 511 | }
|
512 | 512 | else if (len == 0) {
|
|
0 commit comments