We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7aafaee commit b479d59Copy full SHA for b479d59
src/test/java/org/owasp/esapi/reference/ExtensiveEncoderURITest.java
@@ -36,10 +36,8 @@ public ExtensiveEncoderURITest(String uri){
36
@Parameters
37
public static Collection<String> getMyUris() throws Exception{
38
URL url = ExtensiveEncoderURITest.class.getResource("/urisForTest.txt");
39
-
40
- try( InputStream is = url.openStream() ) {
41
- InputStreamReader isr = new InputStreamReader(is, StandardCharsets.UTF_8);
42
- BufferedReader br = new BufferedReader(isr);
+
+ try( BufferedReader br = new BufferedReader(new InputStreamReader(url.openStream(), StandardCharsets.UTF_8)) ) {
43
inputs = readAllLines(br);
44
}
45
return inputs;
0 commit comments