SLING-6138 : Use JcrResourceListener for observation. Deprecate attribute methods

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1764396 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/sling/api/resource/observation/ResourceChange.java b/src/main/java/org/apache/sling/api/resource/observation/ResourceChange.java
index 6f9c92f..81df6da 100644
--- a/src/main/java/org/apache/sling/api/resource/observation/ResourceChange.java
+++ b/src/main/java/org/apache/sling/api/resource/observation/ResourceChange.java
@@ -144,7 +144,10 @@
      * returning {code null} is the equivalent of "don't know".
      * @return The set of changed property names. For external events or
      *         resource provider events {@code null} is returned.
+     * @deprecated As there is no guarantee that this information is contained in the change
+     *             event, this should not be used anymore.
      */
+    @Deprecated
     public @CheckForNull Set<String> getChangedPropertyNames() {
         return this.changedPropertyNames;
     }
@@ -159,7 +162,10 @@
      * returning {code null} is the equivalent of "don't know".
      * @return The set of changed property names. For external events or
      *         resource provider events {@code null} is returned.
+     * @deprecated As there is no guarantee that this information is contained in the change
+     *             event, this should not be used anymore.
      */
+    @Deprecated
     public @CheckForNull Set<String> getAddedPropertyNames() {
         return this.addedPropertyNames;
     }
@@ -174,7 +180,10 @@
      * returning {code null} is the equivalent of "don't know".
      * @return The set of changed property names. For external events or
      *         resource provider events {@code null} is returned.
+     * @deprecated As there is no guarantee that this information is contained in the change
+     *             event, this should not be used anymore.
      */
+    @Deprecated
     public @CheckForNull Set<String> getRemovedPropertyNames() {
         return this.removedPropertyNames;
     }