Kaydet (Commit) 7e010826 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1326738 Dm: Dubious method used

Change-Id: Ia266e5c1b66e35fdb4c6fdd5816f3b35d54ae1bd
üst 337661a9
......@@ -21,7 +21,8 @@ import helper.APIDescGetter;
import helper.AppProvider;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.ArrayList;
import lib.MultiMethodTest;
......@@ -392,7 +393,14 @@ public class java_fat implements TestBase {
BufferedReader exclusion = null;
try {
exclusion = new BufferedReader(new FileReader(url));
InputStreamReader reader = new InputStreamReader(new FileInputStream(url), "UTF-8");
exclusion = new BufferedReader(reader);
} catch (java.io.UnsupportedEncodingException uee) {
if (debug) {
System.out.println("Couldn't decode file " + url);
}
return entryList;
} catch (java.io.FileNotFoundException fnfe) {
if (debug) {
System.out.println("Couldn't find file " + url);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment