commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (BCEL-239) Interfaces should not be used to define constants
Date Wed, 12 Aug 2015 12:22:46 GMT

     [ https://issues.apache.org/jira/browse/BCEL-239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sebb updated BCEL-239:
----------------------
    Description: 
Interfaces should not be used to define constants.

This is often done as a way to save typing the name of a class that defines the constants.
However using an interface pollutes any implementing classes with all the constant names,
even if they are not used.

This issue applies to
Constants
ExceptionConstants
InstructionConstants


  was:
Interfaces should not be used to define constants.

This is often done as a way to save typing the name of a class that defines the constants.
However using an interface pollutes any implementing classes with all the constant names,
even if they are not used.

This issue applies to
InstructionConstants



> Interfaces should not be used to define constants
> -------------------------------------------------
>
>                 Key: BCEL-239
>                 URL: https://issues.apache.org/jira/browse/BCEL-239
>             Project: Commons BCEL
>          Issue Type: Bug
>            Reporter: Sebb
>
> Interfaces should not be used to define constants.
> This is often done as a way to save typing the name of a class that defines the constants.
However using an interface pollutes any implementing classes with all the constant names,
even if they are not used.
> This issue applies to
> Constants
> ExceptionConstants
> InstructionConstants



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message