Class DefaultIssue
- java.lang.Object
-
- org.sonar.api.batch.sensor.internal.DefaultStorable
-
- org.sonar.api.batch.sensor.issue.internal.AbstractDefaultIssue<DefaultIssue>
-
- org.sonar.api.batch.sensor.issue.internal.DefaultIssue
-
public class DefaultIssue extends AbstractDefaultIssue<DefaultIssue> implements Issue, NewIssue
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.sonar.api.batch.sensor.issue.Issue
Issue.Flow
-
-
Field Summary
-
Fields inherited from class org.sonar.api.batch.sensor.issue.internal.AbstractDefaultIssue
flows, primaryLocation, project
-
Fields inherited from class org.sonar.api.batch.sensor.internal.DefaultStorable
storage
-
-
Constructor Summary
Constructors Constructor Description DefaultIssue(DefaultInputProject project)
DefaultIssue(DefaultInputProject project, SensorStorage storage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doSave()
DefaultIssue
forRule(RuleKey ruleKey)
TheRuleKey
of the issue.java.lang.Double
gap()
Gap used to compute the effort for fixing the issue.DefaultIssue
gap(java.lang.Double gap)
Gap used for the computation of the effort.Severity
overriddenSeverity()
Overridden severity.DefaultIssue
overrideSeverity(Severity severity)
Override severity of the issue.IssueLocation
primaryLocation()
Primary locations for this issue.RuleKey
ruleKey()
TheRuleKey
of this issue.-
Methods inherited from class org.sonar.api.batch.sensor.issue.internal.AbstractDefaultIssue
addFlow, addLocation, at, flows, newLocation
-
Methods inherited from class org.sonar.api.batch.sensor.internal.DefaultStorable
save, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.sonar.api.batch.sensor.issue.NewIssue
addFlow, addLocation, at, newLocation, save
-
-
-
-
Constructor Detail
-
DefaultIssue
public DefaultIssue(DefaultInputProject project)
-
DefaultIssue
public DefaultIssue(DefaultInputProject project, @Nullable SensorStorage storage)
-
-
Method Detail
-
forRule
public DefaultIssue forRule(RuleKey ruleKey)
Description copied from interface:NewIssue
TheRuleKey
of the issue.
-
ruleKey
public RuleKey ruleKey()
Description copied from interface:IIssue
TheRuleKey
of this issue.
-
gap
public DefaultIssue gap(@Nullable java.lang.Double gap)
Description copied from interface:NewIssue
Gap used for the computation of the effort.
-
overrideSeverity
public DefaultIssue overrideSeverity(@Nullable Severity severity)
Description copied from interface:NewIssue
Override severity of the issue. Setting a null value or not calling this method means to use severity configured in quality profile.- Specified by:
overrideSeverity
in interfaceNewIssue
-
overriddenSeverity
public Severity overriddenSeverity()
Description copied from interface:Issue
Overridden severity.- Specified by:
overriddenSeverity
in interfaceIssue
-
gap
public java.lang.Double gap()
Description copied from interface:Issue
Gap used to compute the effort for fixing the issue.
-
primaryLocation
public IssueLocation primaryLocation()
Description copied from interface:Issue
Primary locations for this issue.- Specified by:
primaryLocation
in interfaceIIssue
- Specified by:
primaryLocation
in interfaceIssue
- Overrides:
primaryLocation
in classAbstractDefaultIssue<DefaultIssue>
-
doSave
public void doSave()
- Specified by:
doSave
in classDefaultStorable
-
-