diff options
author | Dominik Stadler <centic@apache.org> | 2013-12-31 15:12:30 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2013-12-31 15:12:30 +0000 |
commit | 62ec8b719bde6cf97caca2dbaa751729904a0fab (patch) | |
tree | aecfc0de0adb8984516eff867593af20b44e754e /src/ooxml/java/org/apache | |
parent | 2c7fff15e190c17c5a361e542d222d099b353122 (diff) | |
download | poi-62ec8b719bde6cf97caca2dbaa751729904a0fab.tar.gz poi-62ec8b719bde6cf97caca2dbaa751729904a0fab.zip |
remove some unused imports and some useless TODOs, slightly more
coverage, @Overrides, more info on failing test, fix some Eclipse
warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1554535 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/java/org/apache')
3 files changed, 6 insertions, 35 deletions
diff --git a/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/signature/DigitalCertificatePart.java b/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/signature/DigitalCertificatePart.java index 19ba500f2e..797f12f02a 100644 --- a/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/signature/DigitalCertificatePart.java +++ b/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/signature/DigitalCertificatePart.java @@ -41,38 +41,29 @@ public final class DigitalCertificatePart extends PackagePart { @Override public void close() { - // TODO Auto-generated method stub - } @Override public void flush() { - // TODO Auto-generated method stub - } @Override protected InputStream getInputStreamImpl() throws IOException { - // TODO Auto-generated method stub return null; } @Override protected OutputStream getOutputStreamImpl() { - // TODO Auto-generated method stub return null; } @Override public boolean load(InputStream ios) throws InvalidFormatException { - // TODO Auto-generated method stub return false; } @Override public boolean save(OutputStream zos) throws OpenXML4JException { - // TODO Auto-generated method stub return false; } - } diff --git a/src/ooxml/java/org/apache/poi/openxml4j/opc/signature/PackageDigitalSignature.java b/src/ooxml/java/org/apache/poi/openxml4j/opc/signature/PackageDigitalSignature.java index c7a9b8f7ea..370e52e512 100644 --- a/src/ooxml/java/org/apache/poi/openxml4j/opc/signature/PackageDigitalSignature.java +++ b/src/ooxml/java/org/apache/poi/openxml4j/opc/signature/PackageDigitalSignature.java @@ -34,37 +34,29 @@ public final class PackageDigitalSignature extends PackagePart { @Override public void close() { - // TODO Auto-generated method stub - } @Override public void flush() { - // TODO Auto-generated method stub - } @Override protected InputStream getInputStreamImpl() throws IOException { - // TODO Auto-generated method stub return null; } @Override protected OutputStream getOutputStreamImpl() { - // TODO Auto-generated method stub return null; } @Override public boolean load(InputStream ios) throws InvalidFormatException { - // TODO Auto-generated method stub return false; } @Override public boolean save(OutputStream zos) throws OpenXML4JException { - // TODO Auto-generated method stub return false; } } diff --git a/src/ooxml/java/org/apache/poi/xslf/XSLFSlideShow.java b/src/ooxml/java/org/apache/poi/xslf/XSLFSlideShow.java index 09dccdff1e..b6523bedde 100644 --- a/src/ooxml/java/org/apache/poi/xslf/XSLFSlideShow.java +++ b/src/ooxml/java/org/apache/poi/xslf/XSLFSlideShow.java @@ -16,6 +16,10 @@ ==================================================================== */ package org.apache.poi.xslf; +import java.io.IOException; +import java.util.LinkedList; +import java.util.List; + import org.apache.poi.POIXMLDocument; import org.apache.poi.openxml4j.exceptions.InvalidFormatException; import org.apache.poi.openxml4j.exceptions.OpenXML4JException; @@ -27,24 +31,7 @@ import org.apache.poi.util.Internal; import org.apache.poi.xslf.usermodel.XMLSlideShow; import org.apache.poi.xslf.usermodel.XSLFRelation; import org.apache.xmlbeans.XmlException; -import org.openxmlformats.schemas.presentationml.x2006.main.CTCommentList; -import org.openxmlformats.schemas.presentationml.x2006.main.CTNotesSlide; -import org.openxmlformats.schemas.presentationml.x2006.main.CTPresentation; -import org.openxmlformats.schemas.presentationml.x2006.main.CTSlide; -import org.openxmlformats.schemas.presentationml.x2006.main.CTSlideIdList; -import org.openxmlformats.schemas.presentationml.x2006.main.CTSlideIdListEntry; -import org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMaster; -import org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMasterIdList; -import org.openxmlformats.schemas.presentationml.x2006.main.CTSlideMasterIdListEntry; -import org.openxmlformats.schemas.presentationml.x2006.main.CmLstDocument; -import org.openxmlformats.schemas.presentationml.x2006.main.NotesDocument; -import org.openxmlformats.schemas.presentationml.x2006.main.PresentationDocument; -import org.openxmlformats.schemas.presentationml.x2006.main.SldDocument; -import org.openxmlformats.schemas.presentationml.x2006.main.SldMasterDocument; - -import java.io.IOException; -import java.util.LinkedList; -import java.util.List; +import org.openxmlformats.schemas.presentationml.x2006.main.*; /** * Experimental class to do low level processing of pptx files. @@ -253,6 +240,7 @@ public class XSLFSlideShow extends POIXMLDocument { /** * Get the document's embedded files. */ + @Override public List<PackagePart> getAllEmbedds() throws OpenXML4JException { return embedds; } |