- Superflous statements removed.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353649 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Rainer Klute 2005-04-22 16:40:41 +00:00
parent c0ba718df8
commit 5074c8811e

View File

@ -86,7 +86,6 @@ public class TestEmptyDocument extends TestCase {
public void testSingleEmptyDocument() throws IOException { public void testSingleEmptyDocument() throws IOException {
POIFSFileSystem fs = new POIFSFileSystem(); POIFSFileSystem fs = new POIFSFileSystem();
DirectoryEntry dir = fs.getRoot(); DirectoryEntry dir = fs.getRoot();
dir = fs.getRoot();
dir.createDocument("Foo", new ByteArrayInputStream(new byte[] { })); dir.createDocument("Foo", new ByteArrayInputStream(new byte[] { }));
ByteArrayOutputStream out = new ByteArrayOutputStream(); ByteArrayOutputStream out = new ByteArrayOutputStream();
@ -97,7 +96,6 @@ public class TestEmptyDocument extends TestCase {
public void testSingleEmptyDocumentEvent() throws IOException { public void testSingleEmptyDocumentEvent() throws IOException {
POIFSFileSystem fs = new POIFSFileSystem(); POIFSFileSystem fs = new POIFSFileSystem();
DirectoryEntry dir = fs.getRoot(); DirectoryEntry dir = fs.getRoot();
dir = fs.getRoot();
dir.createDocument("Foo", 0, new POIFSWriterListener() { dir.createDocument("Foo", 0, new POIFSWriterListener() {
public void processPOIFSWriterEvent(POIFSWriterEvent event) { public void processPOIFSWriterEvent(POIFSWriterEvent event) {
System.out.println("written"); System.out.println("written");
@ -112,7 +110,6 @@ public class TestEmptyDocument extends TestCase {
public void testEmptyDocumentWithFriend() throws IOException { public void testEmptyDocumentWithFriend() throws IOException {
POIFSFileSystem fs = new POIFSFileSystem(); POIFSFileSystem fs = new POIFSFileSystem();
DirectoryEntry dir = fs.getRoot(); DirectoryEntry dir = fs.getRoot();
dir = fs.getRoot();
dir.createDocument("Bar", new ByteArrayInputStream(new byte[] { 0 })); dir.createDocument("Bar", new ByteArrayInputStream(new byte[] { 0 }));
dir.createDocument("Foo", new ByteArrayInputStream(new byte[] { })); dir.createDocument("Foo", new ByteArrayInputStream(new byte[] { }));
@ -124,7 +121,6 @@ public class TestEmptyDocument extends TestCase {
public void testEmptyDocumentEventWithFriend() throws IOException { public void testEmptyDocumentEventWithFriend() throws IOException {
POIFSFileSystem fs = new POIFSFileSystem(); POIFSFileSystem fs = new POIFSFileSystem();
DirectoryEntry dir = fs.getRoot(); DirectoryEntry dir = fs.getRoot();
dir = fs.getRoot();
dir.createDocument("Bar", 1, new POIFSWriterListener() { dir.createDocument("Bar", 1, new POIFSWriterListener() {
public void processPOIFSWriterEvent(POIFSWriterEvent event) { public void processPOIFSWriterEvent(POIFSWriterEvent event) {
try { try {