You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2013/05/28 22:15:36 UTC

[2/3] git commit: Fix minor typo in javadoc. Remove useless cast.

Fix minor typo in javadoc. Remove useless cast.


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

Branch: refs/heads/master
Commit: 0fbd643621f99f1ff03ddd834723b8d53cfd798a
Parents: 55eb521
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Tue May 28 23:13:46 2013 +0300
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Tue May 28 23:13:46 2013 +0300

----------------------------------------------------------------------
 .../apache/wicket/markup/html/list/ListView.java   |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/0fbd6436/wicket-core/src/main/java/org/apache/wicket/markup/html/list/ListView.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/markup/html/list/ListView.java b/wicket-core/src/main/java/org/apache/wicket/markup/html/list/ListView.java
index 6c18dd8..7990084 100644
--- a/wicket-core/src/main/java/org/apache/wicket/markup/html/list/ListView.java
+++ b/wicket-core/src/main/java/org/apache/wicket/markup/html/list/ListView.java
@@ -183,7 +183,7 @@ public abstract class ListView<T> extends AbstractRepeater
 	/**
 	 * If true re-rendering the list view is more efficient if the windows doesn't get changed at
 	 * all or if it gets scrolled (compared to paging). But if you modify the listView model object,
-	 * than you must manually call listView.removeAll() in order to rebuild the ListItems. If you
+	 * then you must manually call listView.removeAll() in order to rebuild the ListItems. If you
 	 * nest a ListView in a Form, ALLWAYS set this property to true, as otherwise validation will
 	 * not work properly.
 	 * 
@@ -483,7 +483,7 @@ public abstract class ListView<T> extends AbstractRepeater
 					final ListItem<?> child = (ListItem<?>)iterator.next();
 					if (child != null)
 					{
-						final int index = (int)child.getIndex();
+						final int index = child.getIndex();
 						if (index < firstIndex || index >= maxIndex)
 						{
 							iterator.remove();