Check style says that for a private class variable "must be declared final".
class Test {
private int x=1;
public void set(int x) {
this.x = x;
}
}
In the above case it calls to declare x as final however declaring x as final would give error on initializing it in the constructor. What's the catch?