Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenLooman committed Jul 9, 2023
1 parent 12a84a1 commit 257b566
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ protected void walkPostMagik(final AstNode node) {
.collect(Collectors.toMap(
MethodDefinition::getName,
List::of,
(list1, list2) -> Stream.concat(list1.stream(), list2.stream()).collect(Collectors.toList())));
(list1, list2) -> Stream.concat(
list1.stream(),
list2.stream())
.collect(Collectors.toList())));
definitions.entrySet().stream()
.filter(entry -> entry.getValue().size() > 1)
.flatMap(entry -> entry.getValue().stream())
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package nl.ramsolutions.sw.magik.languageserver.codeactions;

import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import nl.ramsolutions.sw.magik.MagikTypedFile;
import org.eclipse.lsp4j.CodeAction;
Expand Down Expand Up @@ -41,7 +42,7 @@ public List<Either<Command, CodeAction>> provideCodeActions(
this.methodReturnTypeUpdateProvider.provideCodeActions(magikFile, range, context).stream(),
this.parameterTypeProvider.provideCodeActions(magikFile, range, context).stream()
)
.toList();
.collect(Collectors.toList());
}

}

0 comments on commit 257b566

Please sign in to comment.