Skip to content

Commit 04b0c61

Browse files
authored
Don't throw UOE from LanguageServer.getNotebookDocumentService() (#659)
Fixes #658
1 parent 22f8edc commit 04b0c61

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

org.eclipse.lsp4j.jsonrpc/src/main/java/org/eclipse/lsp4j/jsonrpc/services/GenericEndpoint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ protected void recursiveFindRpcMethods(Object current, Set<Class<?>> visited, Se
7777
if (delegate != null) {
7878
recursiveFindRpcMethods(delegate, visited, visitedForDelegate);
7979
} else {
80-
LOG.log(Level.SEVERE, "A delegate object is null, jsonrpc methods of '" + method + "' are ignored");
80+
LOG.fine("A delegate object is null, jsonrpc methods of '" + method + "' are ignored");
8181
}
8282
} catch (InvocationTargetException | IllegalAccessException e) {
8383
throw new RuntimeException(e);

org.eclipse.lsp4j/src/main/java/org/eclipse/lsp4j/services/LanguageServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ default void initialized() {
9090
*/
9191
@JsonDelegate
9292
default NotebookDocumentService getNotebookDocumentService() {
93-
throw new UnsupportedOperationException();
93+
return null;
9494
}
9595

9696
/**

0 commit comments

Comments
 (0)