Click to see the query in the CodeQL repository
A field that has the same name as a field in a superclass hides the field in the superclass. Such hiding might be unintentional, especially if there are no references to the hidden field using the super qualifier. In any case, it makes code more difficult to read.
Ensure that any hiding is intentional. For clarity, it may be better to rename the field in the subclass.
In the following example, the programmer unintentionally added an age field to Employee, which hides the age field in Person. The constructor in Person sets the age field in Person to 20 but the age field in Employee is still 0. This means that the program outputs 0, which is probably not what was intended.
To fix this, delete the declaration of age on line 11.
Help - Eclipse Platform: Java Compiler Errors/Warnings Preferences.
The Java Tutorials: Hiding Fields.