public class DefaultIssue extends Object implements Issue, Serializable
Modifier and Type | Method and Description |
---|---|
Double |
effortToFix()
Effort to fix the issue.
|
boolean |
equals(Object o) |
int |
hashCode() |
InputPath |
inputPath()
The
InputPath this issue belongs to. |
String |
key() |
Integer |
line()
Line of the issue.
|
String |
message()
Message of the issue.
|
RuleKey |
ruleKey()
The
RuleKey of this issue. |
void |
setMessage(String message) |
void |
setSeverity(String severity) |
String |
severity()
See constants in
Severity . |
String |
toString() |
@Nullable public InputPath inputPath()
Issue
InputPath
this issue belongs to. Returns null if issue is global to the project.public RuleKey ruleKey()
Issue
RuleKey
of this issue.@CheckForNull public String message()
Issue
public void setMessage(String message)
public Integer line()
Issue
@Nullable public Double effortToFix()
Issue
effortToFix
in interface Issue
@CheckForNull public String severity()
Issue
Severity
.
Can be null before issue is saved. Means to use severity configured in quality profile.public void setSeverity(String severity)
Copyright © 2009–2015 SonarSource. All rights reserved.