aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-01-28 10:28:56 +0100
committersimonbrandhof <simon.brandhof@gmail.com>2011-01-28 13:18:46 +0100
commit220dd330306d76b7ff13baa07abf461688c92fc1 (patch)
treeb1f28252ad373072279c7814d67dbe0cd28b6a15 /sonar-plugin-api
parent3f18345fbcaca61abf79de6597e377880099eea5 (diff)
downloadsonarqube-220dd330306d76b7ff13baa07abf461688c92fc1.tar.gz
sonarqube-220dd330306d76b7ff13baa07abf461688c92fc1.zip
Deprecate Resource#isExcluded(), replaced by SensorContext#isExcluded(Resource). It makes inheritance of Resource easier.
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/resources/Resource.java6
1 files changed, 6 insertions, 0 deletions
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 68d06907897..11c40999642 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
@@ -205,13 +205,19 @@ public abstract class Resource<PARENT extends Resource> {
return this;
}
+ /**
+ * @deprecated since 2.6 should use SensorContext#isExcluded(resource). It will make inheritance of Resource easier.
+ */
+ @Deprecated
public final boolean isExcluded() {
return isExcluded;
}
/**
* Internal use only
+ * @deprecated since 2.6 should use SensorContext#isExcluded(resource). It will make inheritance of Resource easier.
*/
+ @Deprecated
public final Resource setExcluded(boolean b) {
isExcluded = b;
return this;