#108 MagicNumber: false alarms in interfaces

release_3.2
closed
Rick Giles
Other (70)
5
2012-10-10
2003-05-30
Lars Kühne
No

In interfaces all members are implicitly public static
final. The MagicNumberCheck does not account for that,
raising false alarms for interfaces like

public interface Blah
{
int LOW = 5;
int HIGH = 78;
}

The same logic as in naming checks should apply here as
well.

Discussion

  • Rick Giles
    Rick Giles
    2003-05-30

    Logged In: YES
    user_id=539926

    corrected and committed to CVS