Example
public class
ClassA {
private int
i;
public void
increment () {
//code that does not access or modify the instance field
}
}
Solution
Remove the declaration for the unused field
public class
ClassA {
public void
increment () {
//code that does not access or modify the instance field
}
}