Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij 2016.3.2 keeps changing String import to com.sun.org.apache.xpath.internal.operations.String

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?

like image 592
Diego Ocampo Avatar asked Dec 18 '25 13:12

Diego Ocampo


1 Answers

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.

like image 99
Bas Leijdekkers Avatar answered Dec 21 '25 10:12

Bas Leijdekkers



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!