From cb9a6d8f244c87e5381059b07c5e1c4480602d84 Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Thu, 7 Jul 2011 10:41:42 +0000 Subject: [PATCH] fix generics warnings git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1143754 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/apache/poi/hwpf/model/PlexOfCps.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/PlexOfCps.java b/src/scratchpad/src/org/apache/poi/hwpf/model/PlexOfCps.java index fe458608a0..05489ae5a0 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/model/PlexOfCps.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/PlexOfCps.java @@ -35,12 +35,12 @@ public final class PlexOfCps private int _count; private int _offset; private int _sizeOfStruct; - private ArrayList _props; + private ArrayList _props; public PlexOfCps(int sizeOfStruct) { - _props = new ArrayList(); + _props = new ArrayList(); _sizeOfStruct = sizeOfStruct; } @@ -57,7 +57,7 @@ public final class PlexOfCps _count = (size - 4)/(4 + sizeOfStruct); _sizeOfStruct = sizeOfStruct; - _props = new ArrayList(_count); + _props = new ArrayList(_count); for (int x = 0; x < _count; x++) { @@ -67,7 +67,7 @@ public final class PlexOfCps public GenericPropertyNode getProperty(int index) { - return (GenericPropertyNode)_props.get(index); + return _props.get(index); } public void addProperty(GenericPropertyNode node) @@ -87,7 +87,7 @@ public final class PlexOfCps GenericPropertyNode node = null; for (int x = 0; x < size; x++) { - node = (GenericPropertyNode)_props.get(x); + node = _props.get(x); // put the starting offset of the property into the plcf. LittleEndian.putInt(buf, (LittleEndian.INT_SIZE * x), node.getStart()); -- 2.39.5