Browse Source

javadoc / removed unused local variable

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277657 13f79535-47bb-0310-9956-ffa450edef68
master
Jacobus Martinus Kruithof 20 years ago
parent
commit
a04f4210de
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/main/org/apache/tools/ant/taskdefs/Replace.java

+ 4
- 2
src/main/org/apache/tools/ant/taskdefs/Replace.java View File

@@ -269,7 +269,7 @@ public class Replace extends MatchingTask {
* received data. * received data.
*/ */
void flush() { void flush() {
int pos = replace();
replace();
outputBuffer.append(inputBuffer); outputBuffer.append(inputBuffer);
inputBuffer.delete(0, inputBuffer.length()); inputBuffer.delete(0, inputBuffer.length());
} }
@@ -365,7 +365,7 @@ public class Replace extends MatchingTask {


/** /**
* Constructs the output component. Opens the file for writing. * Constructs the output component. Opens the file for writing.
* @param source The file to read from.
* @param out The file to read to.
* @throws IOException When the file cannot be read from. * @throws IOException When the file cannot be read from.
*/ */
FileOutput(File out) throws IOException { FileOutput(File out) throws IOException {
@@ -394,6 +394,7 @@ public class Replace extends MatchingTask {
* @return false to be inline with the Replacefilter. * @return false to be inline with the Replacefilter.
* (Yes defining an interface crossed my mind, but would publish the * (Yes defining an interface crossed my mind, but would publish the
* internal behavior.) * internal behavior.)
* @throws IOException when the output cannot be written.
*/ */
boolean process() throws IOException { boolean process() throws IOException {
writer.write(inputBuffer.toString()); writer.write(inputBuffer.toString());
@@ -403,6 +404,7 @@ public class Replace extends MatchingTask {


/** /**
* Processes the buffer to the end. * Processes the buffer to the end.
* @throws IOException when the output cannot be flushed.
*/ */
void flush() throws IOException { void flush() throws IOException {
process(); process();


Loading…
Cancel
Save