Hiding Name (HN)

Description:

HN detects if local variable of method shadows class component with the same name. As far as it is common practice in constructors to use formal parameters with the same name as class components, HN detects situations, when class field is explicitly accessed by using this reference and doesn't report t his message in this case.

Example:

   class A { 
       public int a;
       public void f(int a) { 
           this.a = a; // no message
       }
       public int g(int a) { 
           return a; // warning message will be produced
       }
   }