From: Simon Brandhof Date: Tue, 4 Feb 2014 09:59:36 +0000 (+0100) Subject: Revert JRubyFacade#getRuleRepository(String) X-Git-Tag: 4.2~279 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=99f69932677e065c88d2bc77358411f79262beff;p=sonarqube.git Revert JRubyFacade#getRuleRepository(String) --- diff --git a/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java b/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java index af23cfd191a..69b6e16a4f9 100644 --- a/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java +++ b/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java @@ -58,6 +58,7 @@ import org.sonar.updatecenter.common.PluginReferential; import org.sonar.updatecenter.common.UpdateCenter; import org.sonar.updatecenter.common.Version; +import javax.annotation.CheckForNull; import javax.annotation.Nullable; import java.net.InetAddress; import java.sql.Connection; @@ -240,6 +241,13 @@ public final class JRubyFacade { } /* PROFILES CONSOLE : RULES AND METRIC THRESHOLDS */ + + @Deprecated + @CheckForNull + public RuleRepositories.Repository getRuleRepository(String repositoryKey) { + return get(RuleRepositories.class).repository(repositoryKey); + } + public Collection getRuleRepositories() { return get(RuleRepositories.class).repositories(); }