]> source.dussan.org Git - sonarqube.git/commitdiff
Revert JRubyFacade#getRuleRepository(String)
authorSimon Brandhof <simon.brandhof@gmail.com>
Tue, 4 Feb 2014 09:59:36 +0000 (10:59 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Tue, 4 Feb 2014 09:59:45 +0000 (10:59 +0100)
sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java

index af23cfd191adfda8cc08475b560605ce4ee89eb2..69b6e16a4f9fc7ee29c7b5a1e5d96613f4786d40 100644 (file)
@@ -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<RuleRepositories.Repository> getRuleRepositories() {
     return get(RuleRepositories.class).repositories();
   }