aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/qualitygate/changeevent/QGChangeEventListener.java16
1 files changed, 1 insertions, 15 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/qualitygate/changeevent/QGChangeEventListener.java b/server/sonar-server/src/main/java/org/sonar/server/qualitygate/changeevent/QGChangeEventListener.java
index 1a8a373ec8a..88fa20eb41a 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/qualitygate/changeevent/QGChangeEventListener.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/qualitygate/changeevent/QGChangeEventListener.java
@@ -19,31 +19,17 @@
*/
package org.sonar.server.qualitygate.changeevent;
-import java.util.Collection;
-import java.util.Collections;
import java.util.Set;
import org.sonar.api.rules.RuleType;
public interface QGChangeEventListener {
/**
- * @deprecated use {{@link #onIssueChanges(QGChangeEvent, Set)}} instead
- */
- // TODO remove this method and turn default method #onIssueChanges(QGChangeEvent, Set) into an interface method when
- // support for #onIssueChanges(QGChangeEvent, Set) have been merged into sonar-branch's master
- @Deprecated
- default void onChanges(Trigger trigger, Collection<QGChangeEvent> changeEvents) {
- // do nothing
- }
-
- /**
* Called consequently to a change done on one or more issue of a given project.
*
* @param qualityGateEvent can not be {@code null}
* @param changedIssues can not be {@code null} nor empty
*/
- default void onIssueChanges(QGChangeEvent qualityGateEvent, Set<ChangedIssue> changedIssues) {
- onChanges(Trigger.ISSUE_CHANGE, Collections.singleton(qualityGateEvent));
- }
+ void onIssueChanges(QGChangeEvent qualityGateEvent, Set<ChangedIssue> changedIssues);
interface ChangedIssue {
String getKey();