Author: nick
Date: Tue Nov 12 09:55:46 2013
New Revision: 1540989

URL: http://svn.apache.org/r1540989
Log:
More JavaDoc tweaks, and suppress deprecated warnings where these are expected

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java?rev=1540989&r1=1540988&r2=1540989&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java 
(original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java Tue 
Nov 12 09:55:46 2013
@@ -58,8 +58,9 @@ public final class ZipPackage extends Pa
     private final ZipEntrySource zipArchive;
 
     /**
-     * Constructor. Creates a new ZipPackage.
+     * Constructor. Creates a new, empty ZipPackage.
      */
+    @SuppressWarnings("deprecation")
     public ZipPackage() {
        super(defaultPackageAccess);
        this.zipArchive = null;
@@ -77,6 +78,7 @@ public final class ZipPackage extends Pa
      *             If the specified input stream not an instance of
      *             ZipInputStream.
      */
+    @SuppressWarnings("deprecation")
     ZipPackage(InputStream in, PackageAccess access) throws IOException {
        super(access);
        this.zipArchive = new ZipInputStreamZipEntrySource(
@@ -85,7 +87,7 @@ public final class ZipPackage extends Pa
     }
 
     /**
-     * Constructor. Opens a Zip based Open XML document from a File.
+     * Constructor. Opens a Zip based Open XML document from a file.
      *
      * @param path
      *            The path of the file to open or create.
@@ -94,6 +96,7 @@ public final class ZipPackage extends Pa
      * @throws InvalidFormatException
      *             If the content type part parsing encounters an error.
      */
+    @SuppressWarnings("deprecation")
     ZipPackage(String path, PackageAccess access) {
        super(access);
 
@@ -110,7 +113,7 @@ public final class ZipPackage extends Pa
     }
 
     /**
-     * Constructor. Opens a Zip based Open XML document.
+     * Constructor. Opens a Zip based Open XML document from a File.
      *
      * @param file
      *            The file to open or create.
@@ -119,6 +122,7 @@ public final class ZipPackage extends Pa
      * @throws InvalidFormatException
      *             If the content type part parsing encounters an error.
      */
+    @SuppressWarnings("deprecation")
     ZipPackage(File file, PackageAccess access) {
        super(access);
 
@@ -146,7 +150,8 @@ public final class ZipPackage extends Pa
      * @throws InvalidFormatException
      *             If the content type part parsing encounters an error.
      */
-       ZipPackage(ZipEntrySource zipEntry, PackageAccess access) {
+    @SuppressWarnings("deprecation")
+    ZipPackage(ZipEntrySource zipEntry, PackageAccess access) {
        super(access);
        this.zipArchive = zipEntry;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to