Skip to content

Commit f79df1e

Browse files
committed
fix: solve JDT Null Analysis Missmatch Error
1 parent 03f9dcc commit f79df1e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

org.eclipse.lsp4e/src/org/eclipse/lsp4e/operations/symbols/LSPSymbolInWorkspaceDialog.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,10 @@ private static List<WorkspaceSymbol> toWorkspaceSymbols(@Nullable List<? extends
230230
return res;
231231
}
232232

233-
static List<? extends WorkspaceSymbol> eitherToWorkspaceSymbols(
233+
static List<@Nullable ? extends WorkspaceSymbol> eitherToWorkspaceSymbols(
234234
final @Nullable Either<List<? extends SymbolInformation>, List<@Nullable ? extends WorkspaceSymbol>> source) {
235235
return source == null //
236-
? List.of()
237-
: source.map(LSPSymbolInWorkspaceDialog::toWorkspaceSymbols, Function.identity());
236+
? new ArrayList<@Nullable WorkspaceSymbol>()
237+
: source.map(LSPSymbolInWorkspaceDialog::toWorkspaceSymbols, Function.identity());
238238
}
239239
}

0 commit comments

Comments
 (0)