File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/main/java/com/github/_1c_syntax/bsl/languageserver/utils Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 36
36
import org .antlr .v4 .runtime .tree .TerminalNode ;
37
37
38
38
import javax .annotation .Nullable ;
39
+ import java .util .Collection ;
39
40
import java .util .Collections ;
40
41
import java .util .List ;
41
42
import java .util .Optional ;
@@ -95,9 +96,9 @@ public String getMdoRef(
95
96
}
96
97
97
98
// todo перенести в mdClasses
98
- public static List <MDSubsystem > subsystemFlatList (List <MDSubsystem > memberList ) {
99
- return memberList .stream ()
100
- .flatMap (subsystem -> Stream .concat (Stream .of (subsystem ), subsystemFlatList (subsystem .getIncludedSubsystems ()).stream ()))
99
+ public static List <MDSubsystem > subsystemFlatList (Collection <MDSubsystem > subsystems ) {
100
+ return subsystems .stream ()
101
+ .flatMap (subsys -> Stream .concat (Stream .of (subsys ), subsystemFlatList (subsys .getIncludedSubsystems ()).stream ()))
101
102
.collect (Collectors .toList ());
102
103
}
103
104
You can’t perform that action at this time.
0 commit comments