Package cdc.issues.answers
Enum IssueResolution
- java.lang.Object
-
- java.lang.Enum<IssueResolution>
-
- cdc.issues.answers.IssueResolution
-
- All Implemented Interfaces:
Serializable,Comparable<IssueResolution>
public enum IssueResolution extends Enum<IssueResolution>
Enumeration of possible issue resolutions.- Author:
- Damien Carbonne
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FALSE_POSITIVEThe issue is a false positive.FIXEDThe issue has been fixed.REMOVEDThe issue has disappeared.UNRESOLVEDThe issue is unresolved.WONT_FIXFor any reason, the issue won't be fixed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IssueResolutionvalueOf(String name)Returns the enum constant of this type with the specified name.static IssueResolution[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNRESOLVED
public static final IssueResolution UNRESOLVED
The issue is unresolved.
-
FIXED
public static final IssueResolution FIXED
The issue has been fixed.Its status must be
IssueStatus.RESOLVEDorIssueStatus.CLOSED.This should be set automatically or by a user.
-
REMOVED
public static final IssueResolution REMOVED
The issue has disappeared.Its status must be
IssueStatus.CLOSED.This should be set automatically.
-
FALSE_POSITIVE
public static final IssueResolution FALSE_POSITIVE
The issue is a false positive.This may be due to the rule detection being imperfect, or an inappropriate rule.
Its status must be
IssueStatus.RESOLVEDorIssueStatus.CLOSED.This can only be set by a user.
-
WONT_FIX
public static final IssueResolution WONT_FIX
For any reason, the issue won't be fixed.Its status must be
IssueStatus.RESOLVEDorIssueStatus.CLOSED.This can only be set by a user.
-
-
Method Detail
-
values
public static IssueResolution[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IssueResolution c : IssueResolution.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IssueResolution valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-