From 73b64b9eacc1f72227ff034a8e71a84351c5567a Mon Sep 17 00:00:00 2001 From: Snjeza Date: Tue, 31 May 2022 20:04:01 +0200 Subject: [PATCH] Fix java.completion.importOrder (#2107) Signed-off-by: Snjezana Peco --- .../eclipse/jdt/ls/core/internal/preferences/Preferences.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/preferences/Preferences.java b/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/preferences/Preferences.java index 9f6d91d9d3..94051a1bcf 100644 --- a/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/preferences/Preferences.java +++ b/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/preferences/Preferences.java @@ -580,11 +580,11 @@ public class Preferences { JAVA_COMPLETION_FAVORITE_MEMBERS_DEFAULT.add("org.junit.jupiter.api.Assumptions.*"); JAVA_COMPLETION_FAVORITE_MEMBERS_DEFAULT.add("org.junit.jupiter.api.DynamicContainer.*"); JAVA_COMPLETION_FAVORITE_MEMBERS_DEFAULT.add("org.junit.jupiter.api.DynamicTest.*"); - JAVA_IMPORT_ORDER_DEFAULT = new ArrayList<>(); + JAVA_IMPORT_ORDER_DEFAULT = new LinkedList<>(); JAVA_IMPORT_ORDER_DEFAULT.add("java"); JAVA_IMPORT_ORDER_DEFAULT.add("javax"); - JAVA_IMPORT_ORDER_DEFAULT.add("com"); JAVA_IMPORT_ORDER_DEFAULT.add("org"); + JAVA_IMPORT_ORDER_DEFAULT.add("com"); JAVA_COMPLETION_FILTERED_TYPES_DEFAULT = new ArrayList<>(); JAVA_COMPLETION_FILTERED_TYPES_DEFAULT.add("com.sun.*"); JAVA_COMPLETION_FILTERED_TYPES_DEFAULT.add("io.micrometer.shaded.*");