Community
Participate
Working Groups
Java Compiler / Unused Code / Check for unused or unread private members = Warning ==> many used attributes are found e.g. public class ErrorConstant { private int id; private String msg; public ErrorConstant(int id, String msg) { this.id = id; this.msg= msg; } ... ==>The private field ErrorConstant.id is never read locally found in M6 & M7
*** Bug 52870 has been marked as a duplicate of this bug. ***
In the code sample, where are the fields read from ? The warning indicates that the field is never referenced from a read access.
Sorry - the error message was ok - my fault