Skip to content

Commit 73b64b9

Browse files
authored
Fix java.completion.importOrder (#2107)
Signed-off-by: Snjezana Peco <snjezana.peco@redhat.com>
1 parent 15af562 commit 73b64b9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/preferences

org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/preferences/Preferences.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,11 +580,11 @@ public class Preferences {
580580
JAVA_COMPLETION_FAVORITE_MEMBERS_DEFAULT.add("org.junit.jupiter.api.Assumptions.*");
581581
JAVA_COMPLETION_FAVORITE_MEMBERS_DEFAULT.add("org.junit.jupiter.api.DynamicContainer.*");
582582
JAVA_COMPLETION_FAVORITE_MEMBERS_DEFAULT.add("org.junit.jupiter.api.DynamicTest.*");
583-
JAVA_IMPORT_ORDER_DEFAULT = new ArrayList<>();
583+
JAVA_IMPORT_ORDER_DEFAULT = new LinkedList<>();
584584
JAVA_IMPORT_ORDER_DEFAULT.add("java");
585585
JAVA_IMPORT_ORDER_DEFAULT.add("javax");
586-
JAVA_IMPORT_ORDER_DEFAULT.add("com");
587586
JAVA_IMPORT_ORDER_DEFAULT.add("org");
587+
JAVA_IMPORT_ORDER_DEFAULT.add("com");
588588
JAVA_COMPLETION_FILTERED_TYPES_DEFAULT = new ArrayList<>();
589589
JAVA_COMPLETION_FILTERED_TYPES_DEFAULT.add("com.sun.*");
590590
JAVA_COMPLETION_FILTERED_TYPES_DEFAULT.add("io.micrometer.shaded.*");

0 commit comments

Comments
 (0)