diff options
author | Josh Micich <josh@apache.org> | 2009-08-18 05:29:53 +0000 |
---|---|---|
committer | Josh Micich <josh@apache.org> | 2009-08-18 05:29:53 +0000 |
commit | a8957e80fae34eb8143f67bd9d01901b56f31cbc (patch) | |
tree | 3defe1dd290f85cdc71c765983c5ad4d0227a4ad /src/testcases/org/apache/poi/hssf/eventmodel | |
parent | e918a0cd0d50a3891a707f03dadee849fc7184f7 (diff) | |
download | poi-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.java | 3 |
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()) ); |