Author: psteitz
Date: Sat Dec 15 20:05:51 2012
New Revision: 1422338
URL: http://svn.apache.org/viewvc?rev=1422338&view=rev
Log:
Made default file encoding explicit (FindBugs).
Modified:
commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/ValueServer.java
Modified:
commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/ValueServer.java
URL:
http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/ValueServer.java?rev=1422338&r1=1422337&r2=1422338&view=diff
==============================================================================
---
commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/ValueServer.java
(original)
+++
commons/proper/math/trunk/src/main/java/org/apache/commons/math3/random/ValueServer.java
Sat Dec 15 20:05:51 2012
@@ -264,6 +264,9 @@ public class ValueServer {
/**
* Sets the the {@link #getValuesFileURL() values file URL}.
*
+ * <p>The values file <i>must</i> be an ASCII text file containing one
+ * valid numeric entry per line.</p>
+ *
* @param url URL of the values file.
*/
public void setValuesFileURL(URL url) {
@@ -293,7 +296,7 @@ public class ValueServer {
// ignore
}
}
- filePointer = new BufferedReader(new
InputStreamReader(valuesFileURL.openStream()));
+ filePointer = new BufferedReader(new
InputStreamReader(valuesFileURL.openStream(), "UTF-8"));
}
/**