Browse Source

ws/doc/unnecessary else

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@536352 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 18 years ago
parent
commit
5486fb50f0
1 changed files with 6 additions and 8 deletions
  1. +6
    -8
      src/main/org/apache/tools/ant/util/ReaderInputStream.java

+ 6
- 8
src/main/org/apache/tools/ant/util/ReaderInputStream.java View File

@@ -90,7 +90,6 @@ public class ReaderInputStream extends InputStream {
result = buf[0]; result = buf[0];
} }
} }

return result & 0xFF; return result & 0xFF;
} }


@@ -138,7 +137,7 @@ public class ReaderInputStream extends InputStream {
} }


/** /**
* Marks the read limit of the StringReader.
* Marks the read limit of the Reader.
* *
* @param limit the maximum limit of bytes that can be read before the * @param limit the maximum limit of bytes that can be read before the
* mark position becomes invalid * mark position becomes invalid
@@ -165,9 +164,8 @@ public class ReaderInputStream extends InputStream {
} }
if (in.ready()) { if (in.ready()) {
return 1; return 1;
} else {
return 0;
} }
return 0;
} }


/** /**
@@ -178,9 +176,9 @@ public class ReaderInputStream extends InputStream {
} }


/** /**
* Resets the StringReader.
* Resets the Reader.
* *
* @exception IOException if the StringReader fails to be reset
* @exception IOException if the Reader fails to be reset
*/ */
public synchronized void reset() throws IOException { public synchronized void reset() throws IOException {
if (in == null) { if (in == null) {
@@ -191,9 +189,9 @@ public class ReaderInputStream extends InputStream {
} }


/** /**
* Closes the Stringreader.
* Closes the Reader.
* *
* @exception IOException if the original StringReader fails to be closed
* @exception IOException if the original Reader fails to be closed
*/ */
public synchronized void close() throws IOException { public synchronized void close() throws IOException {
if (in != null) { if (in != null) {


Loading…
Cancel
Save