Changeset 14191 for lang/java/mvnbeans

Show
Ignore:
Timestamp:
06/18/08 01:21:06 (7 years ago)
Author:
daisuke_m
Message:

Java5に対応できるように修正。

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/java/mvnbeans/trunk/src/main/java/jp/javelindev/mvnbeans/exception/RepositoryIOException.java

    r8951 r14191  
    2727 
    2828    private static final long serialVersionUID = 1L; 
     29     
     30    private Throwable cause = this; 
    2931 
    3032    public RepositoryIOException() { 
     
    3335 
    3436    public RepositoryIOException(String message, Throwable cause) { 
    35         super(message, cause); 
     37        super(message); 
     38        this.cause = cause; 
    3639    } 
    3740 
     
    4144 
    4245    public RepositoryIOException(Throwable cause) { 
    43         super(cause); 
     46        this.cause = cause; 
    4447    } 
    4548 
     49    @Override 
     50    public Throwable getCause() { 
     51        return (cause==this ? null : cause); 
     52    } 
    4653}