You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ni...@apache.org on 2010/09/17 15:43:07 UTC

svn commit: r998128 - /poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java

Author: nick
Date: Fri Sep 17 13:43:07 2010
New Revision: 998128

URL: http://svn.apache.org/viewvc?rev=998128&view=rev
Log:
Fix generics warning

Modified:
    poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java?rev=998128&r1=998127&r2=998128&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java Fri Sep 17 13:43:07 2010
@@ -967,13 +967,13 @@ public class Range { // TODO -instantiab
 	 * @return An int array of length 2. The first int is the start index and
 	 *         the second int is the end index.
 	 */
-	private int[] findRange(List rpl, int min, int start, int end) {
+	private int[] findRange(List<? extends PropertyNode> rpl, int min, int start, int end) {
 		int x = min;
-		PropertyNode node = (PropertyNode) rpl.get(x);
+		PropertyNode node = rpl.get(x);
 
 		while (node==null || (node.getEnd() <= start && x < rpl.size() - 1)) {
 			x++;
-			node = (PropertyNode) rpl.get(x);
+			node = rpl.get(x);
 		}
 
         if (node.getStart()>end) {
@@ -985,10 +985,10 @@ public class Range { // TODO -instantiab
 		}
 
 		int y = x;
-		node = (PropertyNode) rpl.get(y);
+		node = rpl.get(y);
 		while (node==null || (node.getEnd() < end && y < rpl.size() - 1)) {
 			y++;
-			node = (PropertyNode) rpl.get(y);
+			node = rpl.get(y);
 		}
 		return new int[] { x, y + 1 };
 	}



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org