Field is Used by only One Subclass (FUOS)

Description:

FUOS detects if a field is used only by one subclass. It is suggested to move the field to that subclass.

Example:

In the following example, the field quota is declared by Employee but is used by Salesman only.

   class Employee {
       int quota;
       ...
       // quota is not used by Employee
   }

   class Salesman extends Employee {
       int getQuota() {
           return quota;
       }
   }

   class Engineer extends Employee {
       ...
       // quota is not used by Engineer
   }