I use the Eclipse keyboard shortcut Ctrl + Shift + O all the time (Organize Imports).
However, it has one particularly annoying behavior:
If I have any static imports like:
import static java.lang.Math.*;
Organize Imports will "helpfully" replace it with static imports of only the fields and methods I am actually using. For example:
import static java.lang.Math.PI;
import static java.lang.Math.cos;
Is there any way to remove just this behavior from Organize Imports?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…