File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/main/java/org/jenkinsci/plugins/scriptsecurity/sandbox/whitelists Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -266,8 +266,7 @@ private static String printArgumentTypes(Class<?>[] parameterTypes) {
266266
267267 @ SuppressFBWarnings (value = "OS_OPEN_STREAM" , justification = "https://sourceforge.net/p/findbugs/bugs/786/" )
268268 private static Set <String > loadBlacklist () throws IOException {
269- try (InputStream is = StaticWhitelist .class .getResourceAsStream ("blacklist" )) {
270- BufferedReader br = new BufferedReader (new InputStreamReader (is , StandardCharsets .US_ASCII ));
269+ try (InputStream is = StaticWhitelist .class .getResourceAsStream ("blacklist" ); InputStreamReader isr = new InputStreamReader (is , StandardCharsets .US_ASCII ); BufferedReader br = new BufferedReader (isr )) {
271270 Set <String > blacklist = new HashSet <>();
272271 String line ;
273272 while ((line = br .readLine ()) != null ) {
You can’t perform that action at this time.
0 commit comments