diff options
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; |