From 220dd330306d76b7ff13baa07abf461688c92fc1 Mon Sep 17 00:00:00 2001 From: simonbrandhof Date: Fri, 28 Jan 2011 10:28:56 +0100 Subject: [PATCH] Deprecate Resource#isExcluded(), replaced by SensorContext#isExcluded(Resource). It makes inheritance of Resource easier. --- .../src/main/java/org/sonar/api/resources/Resource.java | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.39.5