File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
approvaltests/src/main/java/org/approvaltests/reporters/intellij Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 77import java .util .HashSet ;
88import java .util .Optional ;
99import java .util .Set ;
10+ import java .util .stream .Stream ;
1011
1112public class IntelliJReporter extends GenericDiffReporter
1213{
@@ -34,8 +35,8 @@ public static String findJetBrainsIdes()
3435 }
3536 private static String [] getRunningPrograms ()
3637 {
37- return ProcessHandle .allProcesses ().map (p -> p .info ().command ()). filter ( Optional :: isPresent ). map ( c -> c . get ())
38- .toArray (String []::new );
38+ Stream < Optional < String >> processes = ProcessHandle .allProcesses ().map (p -> p .info ().command ());
39+ return processes . filter ( Optional :: isPresent ). map ( c -> c . get ()) .toArray (String []::new );
3940 }
4041 public static String findJetBrainsIdes (String [] commands )
4142 {
You can’t perform that action at this time.
0 commit comments