*/
package org.sonar.server.qualitygate.changeevent;
+import java.util.Map;
import java.util.Objects;
import org.sonar.api.issue.Issue;
+import org.sonar.api.issue.impact.Severity;
+import org.sonar.api.issue.impact.SoftwareQuality;
import org.sonar.api.rules.RuleType;
import org.sonar.core.issue.DefaultIssue;
class ChangedIssueImpl implements QGChangeEventListener.ChangedIssue {
private final String key;
private final QGChangeEventListener.Status status;
+ private final Map<SoftwareQuality, Severity> impacts;
private final RuleType type;
private final String severity;
private final boolean fromAlm;
this.status = statusOf(issue);
this.type = issue.type();
this.severity = issue.severity();
+ this.impacts = issue.impacts();
this.fromAlm = fromAlm;
}
return type;
}
+ @Override
+ public Map<SoftwareQuality, Severity> getImpacts() {
+ return impacts;
+ }
+
@Override
public String getSeverity() {
return severity;
package org.sonar.server.qualitygate.changeevent;
import java.util.EnumSet;
+import java.util.Map;
import java.util.Set;
+import org.sonar.api.issue.impact.Severity;
+import org.sonar.api.issue.impact.SoftwareQuality;
import org.sonar.api.rules.RuleType;
import org.sonar.api.server.ServerSide;
RuleType getType();
+ Map<SoftwareQuality, Severity> getImpacts();
+
String getSeverity();
default boolean isNotClosed() {