From 0d31f273862dcc983a650275a23a869ba85c8259 Mon Sep 17 00:00:00 2001 From: Phil Steitz Date: Sat, 15 Dec 2012 20:05:51 +0000 Subject: [PATCH] Made default file encoding explicit (FindBugs). git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1422338 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/commons/math3/random/ValueServer.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/math3/random/ValueServer.java b/src/main/java/org/apache/commons/math3/random/ValueServer.java index b9c6230b5..7be2e0e73 100644 --- a/src/main/java/org/apache/commons/math3/random/ValueServer.java +++ b/src/main/java/org/apache/commons/math3/random/ValueServer.java @@ -264,6 +264,9 @@ public class ValueServer { /** * Sets the the {@link #getValuesFileURL() values file URL}. * + *

The values file must be an ASCII text file containing one + * valid numeric entry per line.

+ * * @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")); } /**