Polishing

This commit is contained in:
Juergen Hoeller
2015-11-13 08:31:13 +01:00
parent 98be36a306
commit 4b2ce60d65
2 changed files with 2 additions and 1 deletions

View File

@@ -263,7 +263,7 @@ public class FastByteArrayOutputStream extends OutputStream {
*/
public void resize(int targetCapacity) {
Assert.isTrue(targetCapacity >= size(), "New capacity must not be smaller than current size");
if (buffers.peekFirst() == null) {
if (this.buffers.peekFirst() == null) {
this.nextBlockSize = targetCapacity - size();
}
else if (size() == targetCapacity && this.buffers.getFirst().length == targetCapacity) {