diff options
Diffstat (limited to 'src/main/java/org/javacs/JavaLanguageServer.java')
-rw-r--r-- | src/main/java/org/javacs/JavaLanguageServer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/javacs/JavaLanguageServer.java b/src/main/java/org/javacs/JavaLanguageServer.java index c9ebb30..2218b8c 100644 --- a/src/main/java/org/javacs/JavaLanguageServer.java +++ b/src/main/java/org/javacs/JavaLanguageServer.java @@ -1180,7 +1180,7 @@ class JavaLanguageServer extends LanguageServer { private String countReferencesTitle(URI uri, int line, int character) { updateHoverCache(uri, contents(uri).content); var el = hoverCache.element(line, character); - if (el.isEmpty()) { + if (!el.isPresent()) { LOG.warning(String.format("No element to resolve code lens at %s(%d,%d)", uri.getPath(), line, character)); return "? references"; } |