You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by tm...@apache.org on 2020/04/24 18:58:52 UTC
[sling-org-apache-sling-distribution-journal] branch master
updated: SLING-9396 - document how state equality is computed
This is an automated email from the ASF dual-hosted git repository.
tmaret pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-journal.git
The following commit(s) were added to refs/heads/master by this push:
new fe9d53f SLING-9396 - document how state equality is computed
fe9d53f is described below
commit fe9d53f6a641eb22d03abe92445dffbf87d6452d
Author: tmaret <tm...@adobe.com>
AuthorDate: Fri Apr 24 20:57:43 2020 +0200
SLING-9396 - document how state equality is computed
---
.../org/apache/sling/distribution/journal/impl/publisher/State.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/main/java/org/apache/sling/distribution/journal/impl/publisher/State.java b/src/main/java/org/apache/sling/distribution/journal/impl/publisher/State.java
index 63edcc1..be649c4 100644
--- a/src/main/java/org/apache/sling/distribution/journal/impl/publisher/State.java
+++ b/src/main/java/org/apache/sling/distribution/journal/impl/publisher/State.java
@@ -83,6 +83,11 @@ public class State {
return editable;
}
+ /**
+ * Indicates whether some other State is "equal to" this one.
+ *
+ * Equality compares all members except the #timestamp.
+ */
@Override
public boolean equals(Object o) {
if (this == o) return true;