You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2016/06/07 00:41:05 UTC
commons-compress git commit: Replace old school @exception with new
school @throws.
Repository: commons-compress
Updated Branches:
refs/heads/master 57107c019 -> 593339ab6
Replace old school @exception with new school @throws.
Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/593339ab
Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/593339ab
Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/593339ab
Branch: refs/heads/master
Commit: 593339ab62ce5db71fd42501a9ddea9fe698b9ca
Parents: 57107c0
Author: ggregory <gg...@apache.org>
Authored: Mon Jun 6 17:40:58 2016 -0700
Committer: ggregory <gg...@apache.org>
Committed: Mon Jun 6 17:40:58 2016 -0700
----------------------------------------------------------------------
.../commons/compress/archivers/tar/TarArchiveInputStream.java | 2 +-
.../apache/commons/compress/archivers/zip/ExtraFieldUtils.java | 4 ++--
.../apache/commons/compress/archivers/zip/ZipArchiveEntry.java | 2 +-
.../commons/compress/archivers/zip/ZipArchiveOutputStream.java | 4 ++--
.../org/apache/commons/compress/archivers/zip/ZipExtraField.java | 4 ++--
5 files changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-compress/blob/593339ab/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java b/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java
index f0d60cb..e542c64 100644
--- a/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java
+++ b/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStream.java
@@ -204,7 +204,7 @@ public class TarArchiveInputStream extends ArchiveInputStream {
* @param n
* the number of bytes to be skipped.
* @return the actual number of bytes skipped.
- * @exception IOException
+ * @throws IOException
* if some other I/O error occurs.
*/
@Override
http://git-wip-us.apache.org/repos/asf/commons-compress/blob/593339ab/src/main/java/org/apache/commons/compress/archivers/zip/ExtraFieldUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/compress/archivers/zip/ExtraFieldUtils.java b/src/main/java/org/apache/commons/compress/archivers/zip/ExtraFieldUtils.java
index c9e5997..ea7b6e7 100644
--- a/src/main/java/org/apache/commons/compress/archivers/zip/ExtraFieldUtils.java
+++ b/src/main/java/org/apache/commons/compress/archivers/zip/ExtraFieldUtils.java
@@ -79,8 +79,8 @@ public class ExtraFieldUtils {
* {@link UnrecognizedExtraField UnrecognizedExtraField}.
* @param headerId the header identifier
* @return an instance of the appropriate ExtraField
- * @exception InstantiationException if unable to instantiate the class
- * @exception IllegalAccessException if not allowed to instantiate the class
+ * @throws InstantiationException if unable to instantiate the class
+ * @throws IllegalAccessException if not allowed to instantiate the class
*/
public static ZipExtraField createExtraField(final ZipShort headerId)
throws InstantiationException, IllegalAccessException {
http://git-wip-us.apache.org/repos/asf/commons-compress/blob/593339ab/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java b/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java
index e9c78c6..795ff59 100644
--- a/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java
+++ b/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java
@@ -634,7 +634,7 @@ public class ZipArchiveEntry extends java.util.zip.ZipEntry
/**
* Sets the uncompressed size of the entry data.
* @param size the uncompressed size in bytes
- * @exception IllegalArgumentException if the specified size is less
+ * @throws IllegalArgumentException if the specified size is less
* than 0
*/
@Override
http://git-wip-us.apache.org/repos/asf/commons-compress/blob/593339ab/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java b/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java
index 68b962d..4ed2998 100644
--- a/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java
+++ b/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java
@@ -919,7 +919,7 @@ public class ZipArchiveOutputStream extends ArchiveOutputStream {
* Closes this output stream and releases any system resources
* associated with the stream.
*
- * @exception IOException if an I/O error occurs.
+ * @throws IOException if an I/O error occurs.
* @throws Zip64RequiredException if the archive's size exceeds 4
* GByte or there are more than 65535 entries inside the archive
* and {@link #setUseZip64} is {@link Zip64Mode#Never}.
@@ -936,7 +936,7 @@ public class ZipArchiveOutputStream extends ArchiveOutputStream {
* Flushes this output stream and forces any buffered output bytes
* to be written out to the stream.
*
- * @exception IOException if an I/O error occurs.
+ * @throws IOException if an I/O error occurs.
*/
@Override
public void flush() throws IOException {
http://git-wip-us.apache.org/repos/asf/commons-compress/blob/593339ab/src/main/java/org/apache/commons/compress/archivers/zip/ZipExtraField.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/compress/archivers/zip/ZipExtraField.java b/src/main/java/org/apache/commons/compress/archivers/zip/ZipExtraField.java
index 07d64a1..3149774 100644
--- a/src/main/java/org/apache/commons/compress/archivers/zip/ZipExtraField.java
+++ b/src/main/java/org/apache/commons/compress/archivers/zip/ZipExtraField.java
@@ -72,7 +72,7 @@ public interface ZipExtraField {
* @param buffer the buffer to read data from
* @param offset offset into buffer to read data
* @param length the length of data
- * @exception ZipException on error
+ * @throws ZipException on error
*/
void parseFromLocalFileData(byte[] buffer, int offset, int length)
throws ZipException;
@@ -83,7 +83,7 @@ public interface ZipExtraField {
* @param buffer the buffer to read data from
* @param offset offset into buffer to read data
* @param length the length of data
- * @exception ZipException on error
+ * @throws ZipException on error
*/
void parseFromCentralDirectoryData(byte[] buffer, int offset, int length)
throws ZipException;