diff options
author | Josh Micich <josh@apache.org> | 2009-08-18 19:49:28 +0000 |
---|---|---|
committer | Josh Micich <josh@apache.org> | 2009-08-18 19:49:28 +0000 |
commit | 27b61f396a324f7e7882a7e9bbf80c60cef573a0 (patch) | |
tree | cb4869ab9298a8676d18d5385d8e84aa5e850a66 /src/testcases/org/apache/poi/ddf | |
parent | a2cd9a942e1cc575254690ea4b7e9053cade05b3 (diff) | |
download | poi-27b61f396a324f7e7882a7e9bbf80c60cef573a0.tar.gz poi-27b61f396a324f7e7882a7e9bbf80c60cef573a0.zip |
Fixed compiler warnings - unnecessary throws declaration
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@805552 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/ddf')
3 files changed, 8 insertions, 17 deletions
diff --git a/src/testcases/org/apache/poi/ddf/TestEscherBlipWMFRecord.java b/src/testcases/org/apache/poi/ddf/TestEscherBlipWMFRecord.java index 8db7c4be38..3b947e693d 100644 --- a/src/testcases/org/apache/poi/ddf/TestEscherBlipWMFRecord.java +++ b/src/testcases/org/apache/poi/ddf/TestEscherBlipWMFRecord.java @@ -21,13 +21,11 @@ import junit.framework.TestCase; import org.apache.poi.util.HexDump; import org.apache.poi.util.HexRead; -public class TestEscherBlipWMFRecord extends TestCase -{ +public final class TestEscherBlipWMFRecord extends TestCase { private String dataStr; private byte[] data; - protected void setUp() throws Exception - { + protected void setUp() { dataStr = "2C 15 18 F0 34 00 00 00 01 01 01 01 01 01 01 01 " + "01 01 01 01 01 01 01 01 06 00 00 00 03 00 00 00 " + "01 00 00 00 04 00 00 00 02 00 00 00 0A 00 00 00 " + diff --git a/src/testcases/org/apache/poi/ddf/TestEscherBoolProperty.java b/src/testcases/org/apache/poi/ddf/TestEscherBoolProperty.java index 83161d5b45..f1713533aa 100644 --- a/src/testcases/org/apache/poi/ddf/TestEscherBoolProperty.java +++ b/src/testcases/org/apache/poi/ddf/TestEscherBoolProperty.java @@ -1,4 +1,3 @@ - /* ==================================================================== Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with @@ -15,17 +14,14 @@ See the License for the specific language governing permissions and limitations under the License. ==================================================================== */ - + package org.apache.poi.ddf; import junit.framework.TestCase; -public class TestEscherBoolProperty extends TestCase -{ - public void testToString() throws Exception - { +public final class TestEscherBoolProperty extends TestCase { + public void testToString() { EscherBoolProperty p = new EscherBoolProperty((short)1, 1); assertEquals("propNum: 1, RAW: 0x0001, propName: unknown, complex: false, blipId: false, value: 1 (0x00000001)", p.toString()); } - } diff --git a/src/testcases/org/apache/poi/ddf/TestEscherChildAnchorRecord.java b/src/testcases/org/apache/poi/ddf/TestEscherChildAnchorRecord.java index 9cf14e47b4..757972de9f 100644 --- a/src/testcases/org/apache/poi/ddf/TestEscherChildAnchorRecord.java +++ b/src/testcases/org/apache/poi/ddf/TestEscherChildAnchorRecord.java @@ -21,8 +21,7 @@ import junit.framework.TestCase; import org.apache.poi.util.HexDump; import org.apache.poi.util.HexRead; -public class TestEscherChildAnchorRecord extends TestCase -{ +public final class TestEscherChildAnchorRecord extends TestCase { public void testSerialize() { EscherChildAnchorRecord r = createRecord(); @@ -38,8 +37,7 @@ public class TestEscherChildAnchorRecord extends TestCase "04, 00, 00, 00]", HexDump.toHex( data ) ); } - public void testFillFields() throws Exception - { + public void testFillFields() { String hexData = "01 00 " + "0F F0 " + "10 00 00 00 " + @@ -73,8 +71,7 @@ public class TestEscherChildAnchorRecord extends TestCase assertEquals( expected, createRecord().toString() ); } - private static EscherChildAnchorRecord createRecord() - { + private static EscherChildAnchorRecord createRecord() { EscherChildAnchorRecord r = new EscherChildAnchorRecord(); r.setRecordId( EscherChildAnchorRecord.RECORD_ID ); r.setOptions( (short) 0x0001 ); |