Intellij 2016.3.2不断将String导入更改为com.sun.org.apache.xpath.internal.operations.String [英] Intellij 2016.3.2 keeps changing String import to com.sun.org.apache.xpath.internal.operations.String

查看:81
本文介绍了Intellij 2016.3.2不断将String导入更改为com.sun.org.apache.xpath.internal.operations.String的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某些未知的原因,在每个我有返回String类型或接受String作为参数的方法的类中,intellij都会自动导入:

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;

代替

java.lang.String

这是已知的Bug还是有办法禁用它?

Is this a known Bug or is there a way to disable this?

推荐答案

您可以在 File | File |下将类从导入和完成中排除.设置|编辑器一般|自动导入.检查是否未在其中意外添加 java.lang.String .并且可以在其中添加 com.sun.org.apache.xpath.internal.operations.String ,以防止将其自动添加到导入中.

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.

这篇关于Intellij 2016.3.2不断将String导入更改为com.sun.org.apache.xpath.internal.operations.String的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆