diff options
author | George Fraser <george@fivetran.com> | 2019-01-01 23:04:23 -0800 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2019-01-01 23:04:23 -0800 |
commit | 09fe6882214bb530370c908edb9320b074bd0c05 (patch) | |
tree | 8f05d669b27d6466cb769004a5848f7e575ba5ee /src/main/java/org/javacs/CompileFile.java | |
parent | 818574c351f3b7ae50e36ee5fa7dadeff7393429 (diff) | |
download | java-language-server-09fe6882214bb530370c908edb9320b074bd0c05.zip |
Fix code lens placement
Diffstat (limited to 'src/main/java/org/javacs/CompileFile.java')
-rw-r--r-- | src/main/java/org/javacs/CompileFile.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/javacs/CompileFile.java b/src/main/java/org/javacs/CompileFile.java index c99c2b8..7d7802c 100644 --- a/src/main/java/org/javacs/CompileFile.java +++ b/src/main/java/org/javacs/CompileFile.java @@ -282,7 +282,7 @@ public class CompileFile { return i -> { // For each pointer, check if it refers to something in this file that no longer exists for (var ptr : i) { - if (thisClasses.contains(ptr.qualifiedClassName()) && find(ptr).isEmpty()) { + if (thisClasses.contains(ptr.qualifiedClassName()) && !find(ptr).isPresent()) { LOG.info( String.format("`%s` refers to signature that no longer exists in %s", ptr, file.getPath())); return false; |