poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1225092 - /poi/trunk/src/scratchpad/src/org/apache/poi/hdgf/streams/ChunkStream.java
Date Wed, 28 Dec 2011 05:08:46 GMT
Author: nick
Date: Wed Dec 28 05:08:45 2011
New Revision: 1225092

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

Modified:
    poi/trunk/src/scratchpad/src/org/apache/poi/hdgf/streams/ChunkStream.java

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hdgf/streams/ChunkStream.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hdgf/streams/ChunkStream.java?rev=1225092&r1=1225091&r2=1225092&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hdgf/streams/ChunkStream.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hdgf/streams/ChunkStream.java Wed Dec 28 05:08:45
2011
@@ -43,7 +43,7 @@ public final class ChunkStream extends S
 	 * Process the contents of the stream out into chunks
 	 */
 	public void findChunks() {
-		ArrayList chunksA = new ArrayList();
+		ArrayList<Chunk> chunksA = new ArrayList<Chunk>();
 
 		if(getPointer().getOffset() == 0x64b3) {
 			int i = 0;
@@ -66,6 +66,6 @@ public final class ChunkStream extends S
 			}
 		}
 
-		chunks = (Chunk[])chunksA.toArray(new Chunk[chunksA.size()]);
+		chunks = chunksA.toArray(new Chunk[chunksA.size()]);
 	}
 }



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


Mime
View raw message