Issue
In Eclipse, when I did with my coding part, I used to press Ctrl + Shift + O to remove unused import statements.
This works fine. But sometimes it automatically adds one line as below.
import bsh.This;
And this line did not recognize as compile error in Eclipse.
Eclipse version: Luna Service Release 2 (4.4.2)
JDK version: 8
Is there a solution for this problem?
Solution
I found the reason for import bsh.This;
after Ctrl + Shift + O.
Please see the following code and its documentation:
/**
* @author Brijesh
* @param param1
* @param param2
* @see **This** method is used for some purpose
*/
public void someLogicHere(Object param1, Object param2) {
}
As you can see, there is one keyword This in see section. Eclipse is trying to import this from classpath.
Answered By - Brijesh Soni
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.