You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by sv...@apache.org on 2014/03/28 16:08:16 UTC

git commit: WICKET-5547 javadoc for #equals() and #hashcode()

Repository: wicket
Updated Branches:
  refs/heads/master 4c219b9b2 -> 104006469


WICKET-5547 javadoc for #equals() and #hashcode()

Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/10400646
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/10400646
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/10400646

Branch: refs/heads/master
Commit: 104006469c3cd578e6d6fa1f52c2cece08698d31
Parents: 4c219b9
Author: svenmeier <sv...@meiers.net>
Authored: Fri Mar 28 16:07:46 2014 +0100
Committer: svenmeier <sv...@meiers.net>
Committed: Fri Mar 28 16:07:46 2014 +0100

----------------------------------------------------------------------
 .../wicket/markup/repeater/ReuseIfModelsEqualStrategy.java  | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/10400646/wicket-core/src/main/java/org/apache/wicket/markup/repeater/ReuseIfModelsEqualStrategy.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/markup/repeater/ReuseIfModelsEqualStrategy.java b/wicket-core/src/main/java/org/apache/wicket/markup/repeater/ReuseIfModelsEqualStrategy.java
index a09c51c..5a0ece0 100644
--- a/wicket-core/src/main/java/org/apache/wicket/markup/repeater/ReuseIfModelsEqualStrategy.java
+++ b/wicket-core/src/main/java/org/apache/wicket/markup/repeater/ReuseIfModelsEqualStrategy.java
@@ -28,10 +28,11 @@ import org.apache.wicket.util.lang.Generics;
  * iterator. Useful when state needs to be kept across requests for as long as the item is visible
  * within the view.
  * <p>
- * Notice that the <u>model</u> and not the <u>model object</u> needs to implement the equals
- * method. Most of the time it is a good idea to forward the equals call to the object, however if a
- * detachable model is used it is often enough to compare object ids models point to ( this saves
- * the model from loading the object).
+ * Notice that the <u>model</u> and not the <u>model object</u> needs to implement the
+ * {@link #equals(Object)} and {@link #hashCode()} methods. Most of the time it is a good idea to
+ * forward the calls to the object, however if a detachable model is used it is often enough to
+ * compare an identifier for the object the models are pointing to ( this saves the model from loading the
+ * object).
  * 
  * @author Igor Vaynberg (ivaynberg)
  *