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/scratchpad/testcases/org/apache/poi/hdgf | |
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/scratchpad/testcases/org/apache/poi/hdgf')
5 files changed, 10 insertions, 10 deletions
diff --git a/src/scratchpad/testcases/org/apache/poi/hdgf/TestHDGFLZW.java b/src/scratchpad/testcases/org/apache/poi/hdgf/TestHDGFLZW.java index bbdeadad09..f3af7c375f 100644 --- a/src/scratchpad/testcases/org/apache/poi/hdgf/TestHDGFLZW.java +++ b/src/scratchpad/testcases/org/apache/poi/hdgf/TestHDGFLZW.java @@ -106,7 +106,7 @@ public final class TestHDGFLZW extends TestCase { 0, 0, 42, 1, 0, 0, 84, 0, 0, 0, 0, 0 }; - public void testFromToInt() throws Exception { + public void testFromToInt() { byte b255 = -1; assertEquals(255, HDGFLZW.fromByte(b255)); assertEquals(-1, HDGFLZW.fromInt( HDGFLZW.fromByte(b255) )); diff --git a/src/scratchpad/testcases/org/apache/poi/hdgf/extractor/TestVisioExtractor.java b/src/scratchpad/testcases/org/apache/poi/hdgf/extractor/TestVisioExtractor.java index a24733c919..16bd9a961e 100644 --- a/src/scratchpad/testcases/org/apache/poi/hdgf/extractor/TestVisioExtractor.java +++ b/src/scratchpad/testcases/org/apache/poi/hdgf/extractor/TestVisioExtractor.java @@ -30,7 +30,7 @@ import org.apache.poi.poifs.filesystem.POIFSFileSystem; public final class TestVisioExtractor extends TestCase { private String dirname; private String defFilename; - protected void setUp() throws Exception { + protected void setUp() { dirname = System.getProperty("HDGF.testdata.path"); defFilename = dirname + "/Test_Visio-Some_Random_Text.vsd"; } diff --git a/src/scratchpad/testcases/org/apache/poi/hdgf/pointers/TestPointerFactory.java b/src/scratchpad/testcases/org/apache/poi/hdgf/pointers/TestPointerFactory.java index aaed0fd6f8..b8aa155888 100644 --- a/src/scratchpad/testcases/org/apache/poi/hdgf/pointers/TestPointerFactory.java +++ b/src/scratchpad/testcases/org/apache/poi/hdgf/pointers/TestPointerFactory.java @@ -40,7 +40,7 @@ public final class TestPointerFactory extends TestCase { -1, 0, 0, 0, -84, -1, 79, 1, 0, 0, 0, 0, 0, 0, 0, 0, 96, 0 }; - public void testCreateV4() throws Exception { + public void testCreateV4() { PointerFactory pf = new PointerFactory(4); try { pf.createPointer(new byte[]{}, 0); @@ -50,7 +50,7 @@ public final class TestPointerFactory extends TestCase { } } - public void testCreateV5() throws Exception { + public void testCreateV5() { PointerFactory pf = new PointerFactory(5); try { pf.createPointer(new byte[]{}, 0); @@ -61,7 +61,7 @@ public final class TestPointerFactory extends TestCase { } } - public void testCreateV6() throws Exception { + public void testCreateV6() { PointerFactory pf = new PointerFactory(6); Pointer a = pf.createPointer(vp6_a, 0); @@ -117,7 +117,7 @@ public final class TestPointerFactory extends TestCase { assertFalse(d.destinationHasPointers()); } - public void testCreateV6FromMid() throws Exception { + public void testCreateV6FromMid() { PointerFactory pf = new PointerFactory(11); // Create a from part way down the byte stream diff --git a/src/scratchpad/testcases/org/apache/poi/hdgf/streams/TestStreamBugs.java b/src/scratchpad/testcases/org/apache/poi/hdgf/streams/TestStreamBugs.java index 507c2e9579..66c3907082 100644 --- a/src/scratchpad/testcases/org/apache/poi/hdgf/streams/TestStreamBugs.java +++ b/src/scratchpad/testcases/org/apache/poi/hdgf/streams/TestStreamBugs.java @@ -52,17 +52,17 @@ public final class TestStreamBugs extends StreamTest { filesystem.createDocumentInputStream("VisioDocument").read(contents); } - public void testGetTrailer() throws Exception { + public void testGetTrailer() { Pointer trailerPointer = ptrFactory.createPointer(contents, 0x24); Stream.createStream(trailerPointer, contents, chunkFactory, ptrFactory); } - public void TOIMPLEMENTtestGetCertainChunks() throws Exception { + public void TOIMPLEMENTtestGetCertainChunks() { int offsetA = 3708; int offsetB = 3744; } - public void testGetChildren() throws Exception { + public void testGetChildren() { Pointer trailerPointer = ptrFactory.createPointer(contents, 0x24); TrailerStream trailer = (TrailerStream) Stream.createStream(trailerPointer, contents, chunkFactory, ptrFactory); diff --git a/src/scratchpad/testcases/org/apache/poi/hdgf/streams/TestStreamComplex.java b/src/scratchpad/testcases/org/apache/poi/hdgf/streams/TestStreamComplex.java index 8f1897e00e..a06c03aa24 100644 --- a/src/scratchpad/testcases/org/apache/poi/hdgf/streams/TestStreamComplex.java +++ b/src/scratchpad/testcases/org/apache/poi/hdgf/streams/TestStreamComplex.java @@ -205,7 +205,7 @@ public final class TestStreamComplex extends StreamTest { assertTrue(s8451.getPointedToStreams()[1] instanceof StringsStream); } - public void testChunkWithText() throws Exception { + public void testChunkWithText() { // Parent ChunkStream is at 0x7194 // This is one of the last children of the trailer Pointer trailerPtr = ptrFactory.createPointer(contents, trailerPointerAt); |