From: simonbrandhof Date: Fri, 28 Jan 2011 09:28:56 +0000 (+0100) Subject: Deprecate Resource#isExcluded(), replaced by SensorContext#isExcluded(Resource).... X-Git-Tag: 2.6~92 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=220dd330306d76b7ff13baa07abf461688c92fc1;p=sonarqube.git Deprecate Resource#isExcluded(), replaced by SensorContext#isExcluded(Resource). It makes inheritance of Resource easier. --- 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 { 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;