aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-deprecated/src/main/java
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-03-15 11:00:57 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2012-03-15 11:00:57 +0100
commitf16ec1f6717175089639d8c4348369bcb8c04b5e (patch)
tree8dc8add2560e8a9c04133a52ea87d9354f640849 /sonar-deprecated/src/main/java
parent0da9800cf24987bb9118af3b553c3fd34d735d82 (diff)
downloadsonarqube-f16ec1f6717175089639d8c4348369bcb8c04b5e.tar.gz
sonarqube-f16ec1f6717175089639d8c4348369bcb8c04b5e.zip
Do not use deprecated rule categories (column MEASURES.RULES_CATEGORY_ID, table RULES_CATEGORY_ID), but keep them in API for backward-compatibility
Diffstat (limited to 'sonar-deprecated/src/main/java')
-rw-r--r--sonar-deprecated/src/main/java/org/sonar/api/rules/xml/Profile.java68
-rw-r--r--sonar-deprecated/src/main/java/org/sonar/api/rules/xml/Property.java50
-rw-r--r--sonar-deprecated/src/main/java/org/sonar/api/rules/xml/Rule.java85
3 files changed, 0 insertions, 203 deletions
diff --git a/sonar-deprecated/src/main/java/org/sonar/api/rules/xml/Profile.java b/sonar-deprecated/src/main/java/org/sonar/api/rules/xml/Profile.java
deleted file mode 100644
index 2584621abc4..00000000000
--- a/sonar-deprecated/src/main/java/org/sonar/api/rules/xml/Profile.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * Sonar, open source software quality management tool.
- * Copyright (C) 2008-2012 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * Sonar is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * Sonar is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with Sonar; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
- */
-package org.sonar.api.rules.xml;
-
-import com.thoughtworks.xstream.annotations.XStreamAlias;
-import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
-import com.thoughtworks.xstream.annotations.XStreamImplicit;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * @deprecated since 2.3
- */
-@Deprecated
-@XStreamAlias("profile")
-public class Profile {
-
- @XStreamAsAttribute
- private String language;
-
- @XStreamAsAttribute
- private String name;
-
- @XStreamImplicit
- private List<Rule> rules = new ArrayList<Rule>();
-
- public List<Rule> getRules() {
- return rules;
- }
-
- public void setRules(List<Rule> rules) {
- this.rules = rules;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getLanguage() {
- return language;
- }
-
- public void setLanguage(String language) {
- this.language = language;
- }
-}
diff --git a/sonar-deprecated/src/main/java/org/sonar/api/rules/xml/Property.java b/sonar-deprecated/src/main/java/org/sonar/api/rules/xml/Property.java
deleted file mode 100644
index dc7345c1cb3..00000000000
--- a/sonar-deprecated/src/main/java/org/sonar/api/rules/xml/Property.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Sonar, open source software quality management tool.
- * Copyright (C) 2008-2012 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * Sonar is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * Sonar is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with Sonar; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
- */
-package org.sonar.api.rules.xml;
-
-import com.thoughtworks.xstream.annotations.XStreamAlias;
-import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
-
-/**
- * @deprecated since 2.3
- */
-@Deprecated
-@XStreamAlias("property")
-public class Property {
-
- @XStreamAsAttribute
- private String name;
-
- @XStreamAsAttribute
- private String value;
-
- public Property(String name, String value) {
- this.name = name;
- this.value = value;
- }
-
- public String getName() {
- return name;
- }
-
- public String getValue() {
- return value;
- }
-} \ No newline at end of file
diff --git a/sonar-deprecated/src/main/java/org/sonar/api/rules/xml/Rule.java b/sonar-deprecated/src/main/java/org/sonar/api/rules/xml/Rule.java
deleted file mode 100644
index 88d4c93e1a7..00000000000
--- a/sonar-deprecated/src/main/java/org/sonar/api/rules/xml/Rule.java
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
- * Sonar, open source software quality management tool.
- * Copyright (C) 2008-2012 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * Sonar is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * Sonar is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with Sonar; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
- */
-package org.sonar.api.rules.xml;
-
-import com.thoughtworks.xstream.annotations.XStreamAlias;
-import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
-import com.thoughtworks.xstream.annotations.XStreamImplicit;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * @deprecated since 2.3
- */
-@Deprecated
-@XStreamAlias("rule")
-public class Rule implements Comparable<String> {
-
- @XStreamAsAttribute
- private String key;
-
- @XStreamAsAttribute
- private String priority;
-
- @XStreamImplicit
- private List<Property> properties;
-
- public Rule(String ref) {
- this(ref, null);
- }
-
- public Rule(String ref, String priority) {
- this.key = ref;
- this.priority = priority;
- }
-
- public String getKey() {
- return key;
- }
-
- public void setProperties(List<Property> properties) {
- this.properties = properties;
- }
-
- public List<Property> getProperties() {
- return properties;
- }
-
- public int compareTo(String o) {
- return o.compareTo(key);
- }
-
- public String getPriority() {
- return priority;
- }
-
- public void setPriority(String priority) {
- this.priority = priority;
- }
-
- public void addProperty(Property property) {
- if (properties == null) {
- properties = new ArrayList<Property>();
- }
- properties.add(property);
- }
-
-} \ No newline at end of file