Skip to content

Commit 778820d

Browse files
author
Andreas Dann
committed
rm superflous output
1 parent 21c4d5f commit 778820d

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/main/java/de/codeshield/log4jshell/Log4JProcessDetector.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,11 @@ public static void main(String[] args) throws IOException {
2323

2424
Process process = new ProcessBuilder(commands).start();
2525
BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));
26-
StringBuilder builder = new StringBuilder();
2726
List<String> lines = new ArrayList<>();
2827
String line = null;
2928
while ((line = reader.readLine()) != null) {
3029
lines.add(line);
3130
}
32-
String result = builder.toString();
3331

3432
// analyze each output
3533
// search for the "-classpath" parameter
@@ -67,7 +65,5 @@ public static void main(String[] args) throws IOException {
6765
continue;
6866
}
6967
}
70-
71-
System.out.println(result);
7268
}
7369
}

0 commit comments

Comments
 (0)