aboutsummaryrefslogtreecommitdiff
path: root/src/rejava/io
diff options
context:
space:
mode:
Diffstat (limited to 'src/rejava/io')
-rw-r--r--src/rejava/io/StringReader.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rejava/io/StringReader.java b/src/rejava/io/StringReader.java
index dc39769..65a1aba 100644
--- a/src/rejava/io/StringReader.java
+++ b/src/rejava/io/StringReader.java
@@ -30,7 +30,8 @@ public class StringReader extends Reader {
30 30
31 @Override 31 @Override
32 public int read(final char[] cbuf, final int off, final int len) { 32 public int read(final char[] cbuf, final int off, final int len) {
33 if ((off < 0) || (off > cbuf.length) || (len < 0) || ((off + len) > cbuf.length) || ((off + len) < 0)) { 33 if ((off < 0) || (off > cbuf.length) || (len < 0) || ((off + len) > cbuf.length)
34 || ((off + len) < 0)) {
34 throw new IndexOutOfBoundsException(); 35 throw new IndexOutOfBoundsException();
35 } 36 }
36 if (len == 0) { 37 if (len == 0) {