aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2017-09-06 11:09:20 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2017-09-06 11:09:20 +0200
commit24afdb04fb172ef2ff3fe23760513fc16e42e42a (patch)
tree7d6f01ff74f7833342b1db4933a41d1101bb26de /sonar-plugin-api
parentb793d3a80995b0fc008c33b37bc6304cf06426ec (diff)
downloadsonarqube-24afdb04fb172ef2ff3fe23760513fc16e42e42a.tar.gz
sonarqube-24afdb04fb172ef2ff3fe23760513fc16e42e42a.zip
Fix quality flaws
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/rules/Rule.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/rules/Rule.java b/sonar-plugin-api/src/main/java/org/sonar/api/rules/Rule.java
index f09f0d35c8c..ea1949354e2 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/rules/Rule.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/rules/Rule.java
@@ -287,7 +287,7 @@ public class Rule {
*/
@Deprecated
public Rule getParent() {
- return template;
+ return getTemplate();
}
/**
@@ -295,8 +295,7 @@ public class Rule {
*/
@Deprecated
public Rule setParent(Rule parent) {
- this.template = parent;
- return this;
+ return setTemplate(parent);
}
/**