Browse Source

remove a couple of inner assignments

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@579975 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 18 years ago
parent
commit
e6041976b7
2 changed files with 7 additions and 2 deletions
  1. +5
    -1
      src/main/org/apache/tools/ant/taskdefs/StreamPumper.java
  2. +2
    -1
      src/main/org/apache/tools/ant/util/ReaderInputStream.java

+ 5
- 1
src/main/org/apache/tools/ant/taskdefs/StreamPumper.java View File

@@ -89,7 +89,11 @@ public class StreamPumper implements Runnable {

int length;
try {
while ((length = is.read(buf)) > 0 && !finish) {
while (true) {
length = is.read(buf);
if ((length <= 0) || finish) {
break;
}
os.write(buf, 0, length);
if (autoflush) {
os.flush();


+ 2
- 1
src/main/org/apache/tools/ant/util/ReaderInputStream.java View File

@@ -130,7 +130,8 @@ public class ReaderInputStream extends InputStream {

System.arraycopy(slack, begin, b, off, len);

if ((begin += len) >= slack.length) {
begin += len;
if (begin >= slack.length) {
slack = null;
}



Loading…
Cancel
Save