Java – eclipse Juno – why is there no warning to use uncommented private fields?
•
Java
In previous versions of eclipse, this worked correctly
Error / warning I checked "unused private fields" – > warning But it doesn't seem to work
For example:
public class Main { @Resource private int a; //I see no warning here }
Solution
There are opinions – https://bugs.eclipse.org/bugs/show_bug.cgi?id=365437. See also an open bug in this topic – https://bugs.eclipse.org/bugs/show_bug.cgi?id=376590
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码