From 99f69932677e065c88d2bc77358411f79262beff Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 4 Feb 2014 10:59:36 +0100 Subject: [PATCH] Revert JRubyFacade#getRuleRepository(String) --- .../src/main/java/org/sonar/server/ui/JRubyFacade.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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(); } -- 2.39.5