diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-03-16 11:46:48 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-03-16 11:50:43 +0100 |
commit | f6a1da456075b5307537c9f736eecb656c5d3a2d (patch) | |
tree | 66d1d3bd84833af3ba30572629637ba69537791f /plugins/sonar-cpd-plugin | |
parent | ab19fa283c7c86034ebde4823b3b8675797d9fbb (diff) | |
download | sonarqube-f6a1da456075b5307537c9f736eecb656c5d3a2d.tar.gz sonarqube-f6a1da456075b5307537c9f736eecb656c5d3a2d.zip |
SONAR-1378 validate property types + update type of core properties
Diffstat (limited to 'plugins/sonar-cpd-plugin')
-rw-r--r-- | plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/CpdPlugin.java | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/CpdPlugin.java b/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/CpdPlugin.java index ddefdb4fa4c..2708f843d17 100644 --- a/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/CpdPlugin.java +++ b/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/CpdPlugin.java @@ -19,10 +19,8 @@ */ package org.sonar.plugins.cpd; -import org.sonar.api.CoreProperties; -import org.sonar.api.Properties; -import org.sonar.api.Property; -import org.sonar.api.SonarPlugin; +import org.sonar.api.*; +import org.sonar.api.PropertyType; import org.sonar.plugins.cpd.decorators.DuplicationDensityDecorator; import org.sonar.plugins.cpd.decorators.SumDuplicationsDecorator; import org.sonar.plugins.cpd.index.IndexFactory; @@ -43,7 +41,7 @@ import java.util.List; module = true, global = true, category = CoreProperties.CATEGORY_DUPLICATIONS, - type = Property.Type.SINGLE_SELECT_LIST, + type = PropertyType.SINGLE_SELECT_LIST, options = {"sonar", "pmd"}), @Property( key = CoreProperties.CPD_CROSS_RPOJECT, @@ -56,7 +54,7 @@ import java.util.List; module = true, global = true, category = CoreProperties.CATEGORY_DUPLICATIONS, - type = Property.Type.BOOLEAN), + type = PropertyType.BOOLEAN), @Property( key = CoreProperties.CPD_MINIMUM_TOKENS_PROPERTY, defaultValue = CoreProperties.CPD_MINIMUM_TOKENS_DEFAULT_VALUE + "", @@ -67,7 +65,7 @@ import java.util.List; module = true, global = true, category = CoreProperties.CATEGORY_DUPLICATIONS, - type = Property.Type.INTEGER), + type = PropertyType.INTEGER), @Property( key = CoreProperties.CPD_IGNORE_LITERALS_PROPERTY, defaultValue = CoreProperties.CPD_IGNORE_LITERALS_DEFAULT_VALUE + "", @@ -79,7 +77,7 @@ import java.util.List; module = true, global = true, category = CoreProperties.CATEGORY_DUPLICATIONS, - type = Property.Type.BOOLEAN), + type = PropertyType.BOOLEAN), @Property( key = CoreProperties.CPD_IGNORE_IDENTIFIERS_PROPERTY, defaultValue = CoreProperties.CPD_IGNORE_IDENTIFIERS_DEFAULT_VALUE + "", @@ -90,7 +88,7 @@ import java.util.List; module = true, global = true, category = CoreProperties.CATEGORY_DUPLICATIONS, - type = Property.Type.BOOLEAN) + type = PropertyType.BOOLEAN) }) public final class CpdPlugin extends SonarPlugin { |