mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
fix(lsp/java): empty imports allows classes from same package to be imported with completion items
This commit is contained in:
Generated
+17
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="deploymentTargetDropDown">
|
||||
<runningDeviceTargetSelectedWithDropDown>
|
||||
<Target>
|
||||
<type value="RUNNING_DEVICE_TARGET" />
|
||||
<deviceKey>
|
||||
<Key>
|
||||
<type value="SERIAL_NUMBER" />
|
||||
<value value="b36e6c44" />
|
||||
</Key>
|
||||
</deviceKey>
|
||||
</Target>
|
||||
</runningDeviceTargetSelectedWithDropDown>
|
||||
<timeTargetWasSelectedWithDropDown value="2023-04-09T13:43:12.625854159Z" />
|
||||
</component>
|
||||
</project>
|
||||
Binary file not shown.
@@ -62,8 +62,8 @@ public class EditHelper {
|
||||
}
|
||||
|
||||
public static boolean containsImport(@NonNull Path file, Set<String> imports, String className) {
|
||||
if (imports == null || imports.isEmpty()) {
|
||||
return false;
|
||||
if (imports == null) {
|
||||
imports = Collections.emptySet();
|
||||
}
|
||||
|
||||
final String pkgName = Extractors.packageName(className);
|
||||
|
||||
Reference in New Issue
Block a user