diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-01-28 10:28:56 +0100 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-01-28 13:18:46 +0100 |
commit | 220dd330306d76b7ff13baa07abf461688c92fc1 (patch) | |
tree | b1f28252ad373072279c7814d67dbe0cd28b6a15 /sonar-plugin-api | |
parent | 3f18345fbcaca61abf79de6597e377880099eea5 (diff) | |
download | sonarqube-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.java | 6 |
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; |