diff options
author | George Fraser <george@fivetran.com> | 2018-12-15 14:37:00 -0800 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2018-12-15 14:37:13 -0800 |
commit | 4533aaf75a75bc64ae67e685cdff95a96a6cf5cc (patch) | |
tree | 09d52b7c67e0f8002a0a0bfeb749ab70b16adbe2 /src/test | |
parent | 74f850eb6e283c68c9338da8da887acaea975f1f (diff) | |
download | java-language-server-4533aaf75a75bc64ae67e685cdff95a96a6cf5cc.zip |
Sort already-imported classes first
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/org/javacs/JavaCompilerServiceTest.java | 2 |
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; |