This is an automated email from the ASF dual-hosted git repository. kwin pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-resource-observation-annotations.git
The following commit(s) were added to refs/heads/master by this push: new b1a3855 Update Sling API dependencies to detect changes being introduced by SLING-6164 b1a3855 is described below commit b1a38550bb042543d5f80bffc91bd0eb8432b777 Author: Konrad Windszus <k...@apache.org> AuthorDate: Wed Feb 7 14:49:43 2024 +0100 Update Sling API dependencies to detect changes being introduced by SLING-6164 --- pom.xml | 4 ++-- .../resource/observation/annotations/SlingResourceChangeListener.java | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 206ff53..e1f7518 100644 --- a/pom.xml +++ b/pom.xml @@ -63,8 +63,8 @@ <dependency> <groupId>org.apache.sling</groupId> <artifactId>org.apache.sling.api</artifactId> - <!-- https://issues.apache.org/jira/browse/SLING-4751 --> - <version>2.11.0</version> + <!-- https://issues.apache.org/jira/browse/SLING-6164 --> + <version>2.15.0</version> <scope>provided</scope> </dependency> </dependencies> diff --git a/src/main/java/org/apache/sling/resource/observation/annotations/SlingResourceChangeListener.java b/src/main/java/org/apache/sling/resource/observation/annotations/SlingResourceChangeListener.java index c09cedd..440b189 100644 --- a/src/main/java/org/apache/sling/resource/observation/annotations/SlingResourceChangeListener.java +++ b/src/main/java/org/apache/sling/resource/observation/annotations/SlingResourceChangeListener.java @@ -99,8 +99,11 @@ public @interface SlingResourceChangeListener { * must be prepared that the underlying implementation is not able to filter * based on this property. In this case the listener gets all events * as defined with the other properties. + * <p> + * This requires Sling API 2.15.0 or newer. * * @see ResourceChangeListener#PROPERTY_NAMES_HINT + * */ String[] property_names_hint() default {}; }