]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5007 RuleIndex#toDoc must be protected
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 19 May 2014 15:59:01 +0000 (17:59 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 19 May 2014 19:06:26 +0000 (21:06 +0200)
sonar-server/src/main/java/org/sonar/server/rule2/index/RuleIndex.java
sonar-server/src/main/java/org/sonar/server/search/BaseIndex.java
sonar-server/src/main/java/org/sonar/server/search/QueryOptions.java

index 5f66ed3b49bb50484ebd303e71982e318ba721e4..61ab11ef7161e1fd26c51e27062f48e4a7291ec8 100644 (file)
@@ -337,7 +337,8 @@ public class RuleIndex extends BaseIndex<Rule, RuleDto, RuleKey> {
   }
 
 
-  public Rule toDoc(GetResponse response) {
+  @Override
+  protected Rule toDoc(GetResponse response) {
     Preconditions.checkArgument(response != null, "Cannot construct Rule with null response!!!");
     return new RuleDoc(response.getSource());
   }
index 1aa166b059e712d22d985af010eab89cc02a4165..0d4141da0579a86cfcfc55a0cee4c18fe3deb349 100644 (file)
@@ -146,7 +146,7 @@ public abstract class BaseIndex<D, E extends Dto<K>, K extends Serializable>
 
   /* Base CRUD methods */
 
-  public abstract D toDoc(GetResponse response);
+  protected abstract D toDoc(GetResponse response);
 
   public D getByKey(K key) {
     GetResponse response = getClient().prepareGet()
index 197b7ae0d30ad23a3313f9d8f0db255af0c5e87b..1604aa13ed4790bc5f3c31baf895fcd63e76123c 100644 (file)
@@ -60,7 +60,6 @@ public class QueryOptions {
 
   /**
    * Sets whether or not the search returns facets for the domain.
-   * @param facet
    */
   public QueryOptions setFacet(boolean facet) {
     this.facet = facet;