does anyone know how to prevent intellij from impo...
# intellij
d
does anyone know how to prevent intellij from importing into a kotlin file (whenever it organizes the imports) java
Map
,
List,
,
String
java classes that kotlin has its own classes for. removing the import doesn't help. It just puts itself back - and of course colours the file also sorts of red since it can't compile anymore.
k
mishaxz: sounds like a bug, can you extract a code snippet to reproduce it?
d
you know, this is a new class and it is simple.. it may just be that with the other 2 (complex classes) that i never noticed there was a java.util.* import in them. I removed it and it seems to have fixed the problem. The problem only occured with these "shadowed" classes. This "small class" file that I fixed - actually it is not a class file, it just has 3 functions in it - it used
Map
(the kotlin one) in return or parameters of these functions.
y
the bug with incorrect import insertion is fixed in 1.1.3, and the fix will be included in the first 1.1.3 EAP build
d
great, good to hear