diff options
author | Janos Gyerik <janos.gyerik@sonarsource.com> | 2018-01-05 17:59:42 +0100 |
---|---|---|
committer | Janos Gyerik <janos.gyerik@sonarsource.com> | 2018-01-08 12:09:33 +0100 |
commit | 13435bd85f13c9f881d6cbdae827a6f0b51092bd (patch) | |
tree | bb670058e66e12677fae90c624a4e4502edb6079 | |
parent | c0d2705e610d771b8c66ef22e64530c7bca4f538 (diff) | |
download | sonarqube-13435bd85f13c9f881d6cbdae827a6f0b51092bd.tar.gz sonarqube-13435bd85f13c9f881d6cbdae827a6f0b51092bd.zip |
Drop deprecated QGChangeEventListener.onChanges
-rw-r--r-- | server/sonar-server/src/main/java/org/sonar/server/qualitygate/changeevent/QGChangeEventListener.java | 16 |
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(); |