Author: psteitz
Date: Thu May 31 00:58:32 2007
New Revision: 543079

URL: http://svn.apache.org/viewvc?view=rev&rev=543079
Log:
Javadoc; changed string double generator to use valueOf.

Modified:
    
jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/ValueServer.java

Modified: 
jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/ValueServer.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/ValueServer.java?view=diff&rev=543079&r1=543078&r2=543079
==============================================================================
--- 
jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/ValueServer.java
 (original)
+++ 
jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/random/ValueServer.java
 Thu May 31 00:58:32 2007
@@ -302,16 +302,18 @@
     /**
      * 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 @@
             resetReplayFile();
             str = filePointer.readLine();
         }
-        return new Double(str).doubleValue();
+        return Double.valueOf(str).doubleValue();
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to