Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我有一个包含对带有完整包限定符的调用的类java.util.logging.Logger.getLogger- 我可以以某种方式告诉 Eclipse 将这些语句更改为:
java.util.logging.Logger.getLogger
import java.util.logging.Logger; Logger.getLogger...
?
还是我必须手动重构这些类?(这些完整的包限定符是 CXF wsdl 自动生成的类的结果......)
选择完全限定的类名
java.util.logging.Logger
然后点击
Source > Add Import
(快捷键:Control + Shift + M)