From 44b21ca848f98c438cef4e4d9689ad65f902f592 Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Fri, 17 Sep 2010 13:43:07 +0000 Subject: [PATCH] Fix generics warning git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@998128 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/apache/poi/hwpf/usermodel/Range.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java index df9cb0c46d..45eee75e48 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java @@ -967,13 +967,13 @@ public class Range { // TODO -instantiable superclass * @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 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 -instantiable superclass } 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 }; } -- 2.39.5