diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2014-02-10 16:54:15 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2014-02-10 17:07:03 +0100 |
commit | 7f0b376d36e1211e5876011f31af2764f1483d56 (patch) | |
tree | a60f6ffe1f1cd4ba85db6489d3979e6b26de4bde /sonar-plugin-api/src | |
parent | 5eaa8f5ba79468354e84bb3fd9c8b8a581e65faa (diff) | |
download | sonarqube-7f0b376d36e1211e5876011f31af2764f1483d56.tar.gz sonarqube-7f0b376d36e1211e5876011f31af2764f1483d56.zip |
SONAR-926 deprecate org.sonar.api.batch.ResourceFilter
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/batch/ResourceFilter.java | 40 | ||||
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/resources/Resource.java | 7 |
2 files changed, 2 insertions, 45 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/ResourceFilter.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/ResourceFilter.java deleted file mode 100644 index 584ae2baf92..00000000000 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/ResourceFilter.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * SonarQube, open source software quality management tool. - * Copyright (C) 2008-2013 SonarSource - * mailto:contact AT sonarsource DOT com - * - * SonarQube 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. - * - * SonarQube 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 this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ -package org.sonar.api.batch; - -import org.sonar.api.BatchExtension; -import org.sonar.api.resources.Resource; - -/** - * Filter resources to save. For example, ignore a resource if its path matches an exclusion pattern (defined on the project). - * Filters are applied to files, directories and packages only. - * - * If the method start(), without parameters, exists, then it is executed at startup. - * - * @since 1.12 - */ -public interface ResourceFilter extends BatchExtension { - - /** - * Return true if the resource must be ignored, else it's saved into database. - */ - boolean isIgnored(Resource resource); - -} diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/resources/Resource.java b/sonar-plugin-api/src/main/java/org/sonar/api/resources/Resource.java index 4a71d5165e4..958f2246ce9 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/resources/Resource.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/resources/Resource.java @@ -132,8 +132,6 @@ public abstract class Resource implements Serializable { private String effectiveKey = null; - private boolean isExcluded = false; - /** * @return the resource key */ @@ -263,11 +261,11 @@ public abstract class Resource implements Serializable { } /** - * @deprecated since 2.6 should use SensorContext#isExcluded(resource). It will make inheritance of Resource easier. + * @deprecated since 2.6. */ @Deprecated public final boolean isExcluded() { - return isExcluded; + return false; } /** @@ -276,7 +274,6 @@ public abstract class Resource implements Serializable { */ @Deprecated public final Resource setExcluded(boolean b) { - isExcluded = b; return this; } |