Package tigase.xml.annotations
Enum Class TODO.Severity
- All Implemented Interfaces:
Serializable
,Comparable<TODO.Severity>
,Constable
- Enclosing class:
- TODO
This enumeration defines importance levels for code change which is expected to be made for annotated element.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIf change severity is set toCRITICAL
it means that wihtout this change some progress is not possible.DOCUMENTATION
severity refers to code which should be documented.IMPORTANT
severity means that this code does not block implementation of any functionality but might be inefficient, insecure or contain some temporary solution.
IMPORTANT
severity can be also assigned to code which needs some medium or major refactoring.TRIVIAL
severity means that this code works correctly and is implemented according to design but there is still some minor improvement that can be done or just cleaning the code.
TRIVIAL
severity can be assigned also to code which needs some minor refactoring. -
Method Summary
Modifier and TypeMethodDescriptionstatic TODO.Severity
Returns the enum constant of this class with the specified name.static TODO.Severity[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CRITICAL
If change severity is set toCRITICAL
it means that wihtout this change some progress is not possible. Probably it blocks some important functionality like SSL activation for server port. -
IMPORTANT
IMPORTANT
severity means that this code does not block implementation of any functionality but might be inefficient, insecure or contain some temporary solution.
IMPORTANT
severity can be also assigned to code which needs some medium or major refactoring. -
TRIVIAL
TRIVIAL
severity means that this code works correctly and is implemented according to design but there is still some minor improvement that can be done or just cleaning the code.
TRIVIAL
severity can be assigned also to code which needs some minor refactoring. -
DOCUMENTATION
DOCUMENTATION
severity refers to code which should be documented. It does not refer to API documentation. It refers to in-line documentation which should be added due to complicity of some code or unusual algorithm used.
Usually I try to avoid "smart" code but in certain cases it is required to use code which might be difficult to understand. In all such cases code should be detaily documented. This annotation can help to remind what parts of code needs more documentation.
This annotation should be also added by other developer who is not owner of some part of code but tried to read it and found it difficult to understand. In such case it is recommended that this developers should leave such annotation to bring attention to owner that some code needs better documentation.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-