Author: markt Date: Fri Oct 26 21:41:37 2012 New Revision: 1402676 URL: http://svn.apache.org/viewvc?rev=1402676&view=rev Log: Don't need 1.3 compatibility. Fix an Eclipse warning.
Modified: tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/FileUploadBase.java Modified: tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/FileUploadBase.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/FileUploadBase.java?rev=1402676&r1=1402675&r2=1402676&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/FileUploadBase.java (original) +++ tomcat/trunk/java/org/apache/tomcat/util/http/fileupload/FileUploadBase.java Fri Oct 26 21:41:37 2012 @@ -958,32 +958,23 @@ public abstract class FileUploadBase { * {@link FileUploadException} in an {@link IOException}. */ public static class FileUploadIOException extends IOException { - /** The exceptions UID, for serializing an instance. - */ - private static final long serialVersionUID = -7047616958165584154L; - /** The exceptions cause; we overwrite the parent - * classes field, which is available since Java - * 1.4 only. - */ - private final FileUploadException cause; - /** - * Creates a <code>FileUploadIOException</code> with the - * given cause. - * @param pCause The exceptions cause, if any, or null. - */ - public FileUploadIOException(FileUploadException pCause) { - // We're not doing super(pCause) cause of 1.3 compatibility. - cause = pCause; + private static final long serialVersionUID = -3082868232248803474L; + + public FileUploadIOException() { + super(); } - /** - * Returns the exceptions cause. - * @return The exceptions cause, if any, or null. - */ - @Override - public Throwable getCause() { - return cause; + public FileUploadIOException(String message, Throwable cause) { + super(message, cause); + } + + public FileUploadIOException(String message) { + super(message); + } + + public FileUploadIOException(Throwable cause) { + super(cause); } } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org