For some unknown reason, in every class where I have methods that return String type or accept String as a parameter, intellij is automatically importing:
import com.sun.org.apache.xpath.internal.operations.String;
Instead of
java.lang.String
Is this a known Bug or is there a way to disable this?
You can exclude classes from import and completion under File | Settings | Editor | General | Auto Import. Check if java.lang.String is not added there by accident. And you can add com.sun.org.apache.xpath.internal.operations.String there to prevent it from being added to imports automatically.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With