Removed check for classes in java.lang because it's not used by completion anymore and causes problems with importing of java.lang.String on paste
This commit is contained in:
@@ -22,7 +22,6 @@ import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.jet.lang.psi.*;
|
||||
import org.jetbrains.jet.lang.resolve.ImportPath;
|
||||
import org.jetbrains.jet.lang.resolve.java.TopDownAnalyzerFacadeForJVM;
|
||||
import org.jetbrains.jet.lang.resolve.java.mapping.JavaToKotlinClassMap;
|
||||
import org.jetbrains.jet.lang.resolve.name.FqName;
|
||||
import org.jetbrains.jet.lang.resolve.name.NamePackage;
|
||||
import org.jetbrains.jet.plugin.project.ProjectStructureUtil;
|
||||
@@ -116,10 +115,6 @@ public class ImportInsertHelperImpl extends ImportInsertHelper {
|
||||
List<ImportPath> defaultImports = ProjectStructureUtil.isJsKotlinModule(contextFile)
|
||||
? TopDownAnalyzerFacadeForJS.DEFAULT_IMPORTS
|
||||
: TopDownAnalyzerFacadeForJVM.DEFAULT_IMPORTS;
|
||||
if (importPath.fqnPart().asString().startsWith("java.lang.")
|
||||
&& !JavaToKotlinClassMap.INSTANCE.mapPlatformClass(importPath.fqnPart()).isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
return NamePackage.isImported(importPath, defaultImports);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user