Constant Private Attribute Should be Final (CPASBF)

Description:

CPASBF detects if private attributes that never get their values changed should be declared final. When you explicitly declare them like this, the source code provides some information to the reader about how the attribute is supposed to be used.

Example:

   class CPAMBF {
       private int attr1 = 10;
       private int attr2 = 20; 
       void func () {
           attr1 = attr2;
           System.out.println(attr1);
       }
   }