summaryrefslogtreecommitdiff
path: root/src/main/java/org/javacs/CompileFile.java
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2019-01-01 23:04:23 -0800
committerGeorge Fraser <george@fivetran.com>2019-01-01 23:04:23 -0800
commit09fe6882214bb530370c908edb9320b074bd0c05 (patch)
tree8f05d669b27d6466cb769004a5848f7e575ba5ee /src/main/java/org/javacs/CompileFile.java
parent818574c351f3b7ae50e36ee5fa7dadeff7393429 (diff)
downloadjava-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.java2
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;