From a04f4210de99d74200bf22dc059b3ce45e785e4d Mon Sep 17 00:00:00 2001 From: Jacobus Martinus Kruithof Date: Mon, 14 Feb 2005 21:08:00 +0000 Subject: [PATCH] javadoc / removed unused local variable git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277657 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/Replace.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/Replace.java b/src/main/org/apache/tools/ant/taskdefs/Replace.java index 3d56ae842..418bf87f5 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Replace.java +++ b/src/main/org/apache/tools/ant/taskdefs/Replace.java @@ -269,7 +269,7 @@ public class Replace extends MatchingTask { * received data. */ void flush() { - int pos = replace(); + replace(); outputBuffer.append(inputBuffer); inputBuffer.delete(0, inputBuffer.length()); } @@ -365,7 +365,7 @@ public class Replace extends MatchingTask { /** * 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. */ FileOutput(File out) throws IOException { @@ -394,6 +394,7 @@ public class Replace extends MatchingTask { * @return false to be inline with the Replacefilter. * (Yes defining an interface crossed my mind, but would publish the * internal behavior.) + * @throws IOException when the output cannot be written. */ boolean process() throws IOException { writer.write(inputBuffer.toString()); @@ -403,6 +404,7 @@ public class Replace extends MatchingTask { /** * Processes the buffer to the end. + * @throws IOException when the output cannot be flushed. */ void flush() throws IOException { process();