antoine 2003/07/25 11:44:40
Modified: src/main/org/apache/tools/ant/input DefaultInputHandler.java
InputHandler.java
Log:
checkstyle
Revision Changes Path
1.11 +6 -2
ant/src/main/org/apache/tools/ant/input/DefaultInputHandler.java
Index: DefaultInputHandler.java
===================================================================
RCS file:
/home/cvs/ant/src/main/org/apache/tools/ant/input/DefaultInputHandler.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- DefaultInputHandler.java 25 Jul 2003 09:11:50 -0000 1.10
+++ DefaultInputHandler.java 25 Jul 2003 18:44:39 -0000 1.11
@@ -79,12 +79,14 @@
/**
* Prompts and requests input. May loop until a valid input has
* been entered.
+ * @param request the request to handle
+ * @throws BuildException if not possible to read from console
*/
public void handleInput(InputRequest request) throws BuildException {
String prompt = getPrompt(request);
DataInputStream in = null;
try {
- in =
+ in =
new DataInputStream(new
KeepAliveInputStream(getInputStream()));
do {
System.err.println(prompt);
@@ -115,6 +117,7 @@
*
* @param request the request to construct the prompt for.
* Must not be <code>null</code>.
+ * @return the prompt to ask the user
*/
protected String getPrompt(InputRequest request) {
String prompt = request.getPrompt();
@@ -139,6 +142,7 @@
/**
* Returns the input stream from which the user input should be read.
+ * @return the input stream from which the user input should be read.
*/
protected InputStream getInputStream() {
return System.in;
1.5 +3 -1 ant/src/main/org/apache/tools/ant/input/InputHandler.java
Index: InputHandler.java
===================================================================
RCS file:
/home/cvs/ant/src/main/org/apache/tools/ant/input/InputHandler.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- InputHandler.java 19 Jul 2003 08:10:58 -0000 1.4
+++ InputHandler.java 25 Jul 2003 18:44:39 -0000 1.5
@@ -71,6 +71,8 @@
*
* <p>Postcondition: request.getInput will return a non-null
* value, request.isInputValid will return true.</p>
+ * @param request the request to be processed
+ * @throws org.apache.tools.ant.BuildException if the input cannot be
read from the console
*/
void handleInput(InputRequest request)
throws org.apache.tools.ant.BuildException;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]