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
This commit is contained in:
Phil Steitz 2012-12-15 20:05:51 +00:00
parent 623963275a
commit 0d31f27386
1 changed files with 4 additions and 1 deletions

View File

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