summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2018-12-15 14:37:00 -0800
committerGeorge Fraser <george@fivetran.com>2018-12-15 14:37:13 -0800
commit4533aaf75a75bc64ae67e685cdff95a96a6cf5cc (patch)
tree09d52b7c67e0f8002a0a0bfeb749ab70b16adbe2 /src/test
parent74f850eb6e283c68c9338da8da887acaea975f1f (diff)
downloadjava-language-server-4533aaf75a75bc64ae67e685cdff95a96a6cf5cc.zip
Sort already-imported classes first
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/javacs/JavaCompilerServiceTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/java/org/javacs/JavaCompilerServiceTest.java b/src/test/java/org/javacs/JavaCompilerServiceTest.java
index d5cf119..0c04930 100644
--- a/src/test/java/org/javacs/JavaCompilerServiceTest.java
+++ b/src/test/java/org/javacs/JavaCompilerServiceTest.java
@@ -71,7 +71,7 @@ public class JavaCompilerServiceTest {
if (c.element != null) result.add(c.element.getSimpleName().toString());
else if (c.packagePart != null) result.add(c.packagePart.name);
else if (c.keyword != null) result.add(c.keyword);
- else if (c.notImportedClass != null) result.add(Parser.lastName(c.notImportedClass));
+ else if (c.className != null) result.add(Parser.lastName(c.className.name));
else if (c.snippet != null) result.add(c.snippet.snippet);
}
return result;