commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grobme...@apache.org
Subject svn commit: r764669 - in /commons/proper/compress/trunk/src/main/java/org/apache/commons/compress: archivers/ArchiveException.java compressors/CompressorException.java
Date Tue, 14 Apr 2009 04:40:38 GMT
Author: grobmeier
Date: Tue Apr 14 04:40:38 2009
New Revision: 764669

URL: http://svn.apache.org/viewvc?rev=764669&view=rev
Log:
added javadocs, removed constructor without parameters from CompressorException

Modified:
    commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ArchiveException.java
    commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/CompressorException.java

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ArchiveException.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ArchiveException.java?rev=764669&r1=764668&r2=764669&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ArchiveException.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ArchiveException.java
Tue Apr 14 04:40:38 2009
@@ -23,16 +23,28 @@
  */
 public class ArchiveException extends Exception {
 
-	private static final long serialVersionUID = 3256440322136748848L;
+	/** Serial */
+    private static final long serialVersionUID = 2772690708123267100L;
 
-	public ArchiveException() {
-		super();
-	}
-
-	public ArchiveException(String message) {
+    /**
+     * Constructs a new exception with the specified detail message. The cause
+     * is not initialized.
+     * 
+     * @param message
+     *            the detail message
+     */
+    public ArchiveException(String message) {
 		super(message);
 	}
 	
+    /**
+     * Constructs a new exception with the specified detail message and cause.
+     * 
+     * @param message
+     *            the detail message
+     * @param cause
+     *            the cause
+     */
 	public ArchiveException(String message, Exception e) {
 		super(message);
 		this.initCause(e);

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/CompressorException.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/CompressorException.java?rev=764669&r1=764668&r2=764669&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/CompressorException.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/CompressorException.java
Tue Apr 14 04:40:38 2009
@@ -18,23 +18,34 @@
  */
 package org.apache.commons.compress.compressors;
 
+/**
+ * Compressor related exception
+ */
 public class CompressorException extends Exception {
 
-	private static final long serialVersionUID = -2770299103090672278L;
-
-	public CompressorException() {
-		super();
-	}
-
-	public CompressorException(String arg0, Throwable arg1) {
-		super(arg0, arg1);
-	}
-
-	public CompressorException(String arg0) {
-		super(arg0);
-	}
+    /** Serial */
+    private static final long serialVersionUID = -2932901310255908814L;
 
-	public CompressorException(Throwable arg0) {
-		super(arg0);
-	}
+    /**
+     * Constructs a new exception with the specified detail message. The cause
+     * is not initialized.
+     * 
+     * @param message
+     *            the detail message
+     */
+    public CompressorException(String message) {
+        super(message);
+    }
+
+    /**
+     * Constructs a new exception with the specified detail message and cause.
+     * 
+     * @param message
+     *            the detail message
+     * @param cause
+     *            the cause
+     */
+    public CompressorException(String message, Throwable cause) {
+        super(message, cause);
+    }
 }



Mime
View raw message