aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/hssf/eventmodel
diff options
context:
space:
mode:
authorJosh Micich <josh@apache.org>2009-08-18 05:29:53 +0000
committerJosh Micich <josh@apache.org>2009-08-18 05:29:53 +0000
commita8957e80fae34eb8143f67bd9d01901b56f31cbc (patch)
tree3defe1dd290f85cdc71c765983c5ad4d0227a4ad /src/testcases/org/apache/poi/hssf/eventmodel
parente918a0cd0d50a3891a707f03dadee849fc7184f7 (diff)
downloadpoi-a8957e80fae34eb8143f67bd9d01901b56f31cbc.tar.gz
poi-a8957e80fae34eb8143f67bd9d01901b56f31cbc.zip
Fixing compiler warnings - unnecessary typecasts
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@805284 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/hssf/eventmodel')
-rw-r--r--src/testcases/org/apache/poi/hssf/eventmodel/TestModelFactory.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/testcases/org/apache/poi/hssf/eventmodel/TestModelFactory.java b/src/testcases/org/apache/poi/hssf/eventmodel/TestModelFactory.java
index f342fd7231..7cb7f11644 100644
--- a/src/testcases/org/apache/poi/hssf/eventmodel/TestModelFactory.java
+++ b/src/testcases/org/apache/poi/hssf/eventmodel/TestModelFactory.java
@@ -50,11 +50,10 @@ public class TestModelFactory extends TestCase {
{
ModelFactory mf = new ModelFactory();
assertTrue("listeners member cannot be null", mf.listeners != null);
- assertTrue("listeners member must be a List", mf.listeners instanceof List);
models = new ArrayList(3);
factory = new ModelFactory();
book = new HSSFWorkbook();
- ByteArrayOutputStream stream = (ByteArrayOutputStream)setupRunFile(book);
+ ByteArrayOutputStream stream = setupRunFile(book);
POIFSFileSystem fs = new POIFSFileSystem(
new ByteArrayInputStream(stream.toByteArray())
);