#129 find constant interface pattern

release_3.1
closed
Check (274)
5
2012-10-10
2002-12-29
Lars Kühne
No

see Bloch, Item 17:

do not use interfaces to define a set of constants, like in

interface MathConstants {
float PI = 3.14;
}

More formally, create a check that flags interfaces
that contain only fields but no methods.

Create a configuration option whether marker interfaces
are allowed or not. If marker interfaces are allowed, a
field must be present to trigger an error message.

Discussion

  • Lars Kühne

    Lars Kühne - 2003-01-03

    Logged In: YES
    user_id=401384

    implemented, see attachment
    waiting for 3.0 release before I check in.

     
  • Lars Kühne

    Lars Kühne - 2003-01-03

    initial implementation

     
  • Lars Kühne

    Lars Kühne - 2003-02-23

    Logged In: YES
    user_id=401384

    implementation and docs are now in CVS, InterfaceIsType will
    be included in release 3.1

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks