[ checkstyle-Patches-3384162 ] New check: Avoid Constants In Interfaces

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ checkstyle-Patches-3384162 ] New check: Avoid Constants In Interfaces

SourceForge.net
Patches item #3384162, was opened at 2011-08-01 23:31
Message generated for change (Comment added) made by oburn
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397080&aid=3384162&group_id=29721

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Svinukhov Vladimir (svvladimir)
Assigned to: Nobody/Anonymous (nobody)
Summary: New check: Avoid Constants In Interfaces

Initial Comment:
Interfaces should be used only to define types.
They should not be used to export constants.
Developer should avoid declaration of constants in interfaces.
For more information read: "Effective Java" chapter "Item 19: Use interfaces only to define types"
This check reports if the interface contains the declaration of constants.

----------------------------------------------------------------------

>Comment By: Oliver Burn (oburn)
Date: 2012-04-16 04:07

Message:
This is already covered by
http://checkstyle.sourceforge.net/config_design.html#InterfaceIsType

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397080&aid=3384162&group_id=29721

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Checkstyle-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/checkstyle-devel