You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by se...@apache.org on 2011/07/07 12:41:42 UTC
svn commit: r1143754 -
/poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/PlexOfCps.java
Author: sergey
Date: Thu Jul 7 10:41:42 2011
New Revision: 1143754
URL: http://svn.apache.org/viewvc?rev=1143754&view=rev
Log:
fix generics warnings
Modified:
poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/PlexOfCps.java
Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/PlexOfCps.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/PlexOfCps.java?rev=1143754&r1=1143753&r2=1143754&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/PlexOfCps.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/model/PlexOfCps.java Thu Jul 7 10:41:42 2011
@@ -35,12 +35,12 @@ public final class PlexOfCps
private int _count;
private int _offset;
private int _sizeOfStruct;
- private ArrayList _props;
+ private ArrayList<GenericPropertyNode> _props;
public PlexOfCps(int sizeOfStruct)
{
- _props = new ArrayList();
+ _props = new ArrayList<GenericPropertyNode>();
_sizeOfStruct = sizeOfStruct;
}
@@ -57,7 +57,7 @@ public final class PlexOfCps
_count = (size - 4)/(4 + sizeOfStruct);
_sizeOfStruct = sizeOfStruct;
- _props = new ArrayList(_count);
+ _props = new ArrayList<GenericPropertyNode>(_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());
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org