Author: ggregory Date: Wed Apr 6 00:25:23 2016 New Revision: 1737902 URL: http://svn.apache.org/viewvc?rev=1737902&view=rev Log: Statement unnecessarily nested within else clause.
Modified: commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/CharSequenceInputStream.java Modified: commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/CharSequenceInputStream.java URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/CharSequenceInputStream.java?rev=1737902&r1=1737901&r2=1737902&view=diff ============================================================================== --- commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/CharSequenceInputStream.java (original) +++ commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/CharSequenceInputStream.java Wed Apr 6 00:25:23 2016 @@ -165,11 +165,10 @@ public class CharSequenceInputStream ext for (;;) { if (this.bbuf.hasRemaining()) { return this.bbuf.get() & 0xFF; - } else { - fillBuffer(); - if (!this.bbuf.hasRemaining() && !this.cbuf.hasRemaining()) { - return EOF; - } + } + fillBuffer(); + if (!this.bbuf.hasRemaining() && !this.cbuf.hasRemaining()) { + return EOF; } } }