Javadoc; changed string double generator to use valueOf.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/math/trunk@543079 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Phil Steitz 2007-05-31 07:58:32 +00:00
parent 836476d201
commit 830f269247
1 changed files with 6 additions and 4 deletions

View File

@ -302,16 +302,18 @@ public class ValueServer {
/**
* Gets next sequential value from the <code>valuesFileURL</code>.
* <p>
* Throws an IOException if the read fails.
* Throws an IOException if the read fails.</p>
* <p>
* This method will open the <code>valuesFileURL</code> if there is no
* replay file open.
* replay file open.</p>
* <p>
* The <code>valuesFileURL</code> will be closed and reopened to wrap around
* from EOF to BOF if EOF is encountered.
* from EOF to BOF if EOF is encountered.</p>
*
* @return next value from the replay file
* @throws IOException if there is a problem reading from the file
* @throws NumberFormatException if an invalid numeric string is
* encountered in the file
*/
private double getNextReplay() throws IOException {
String str = null;
@ -323,7 +325,7 @@ public class ValueServer {
resetReplayFile();
str = filePointer.readLine();
}
return new Double(str).doubleValue();
return Double.valueOf(str).doubleValue();
}
/**