Skip to content

Commit

Permalink
Format code with Spotless (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Apr 24, 2024
1 parent 91593c7 commit 7843d5b
Show file tree
Hide file tree
Showing 282 changed files with 34,807 additions and 36,990 deletions.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
<gitHubRepo>jenkinsci/${project.artifactId}</gitHubRepo>
<!-- TODO fix existing violations -->
<spotbugs.skip>true</spotbugs.skip>
<spotless.check.skip>false</spotless.check.skip>
</properties>

<dependencies>
Expand Down
95 changes: 45 additions & 50 deletions src/main/java/net/sf/ezmorph/MorphException.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,60 +25,55 @@
*
* @author Andres Almiray <a href="mailto:[email protected]">[email protected]</a>
*/
public class MorphException extends NestableRuntimeException
{
private static final long serialVersionUID = -540093801787033824L;
public class MorphException extends NestableRuntimeException {
private static final long serialVersionUID = -540093801787033824L;

// ----------------------------------------------------------- Constructors
// ----------------------------------------------------------- Constructors

/**
* The root cause of this <code>ConversionException</code>, compatible
* with JDK 1.4's extensions to <code>java.lang.Throwable</code>.
*/
protected Throwable cause = null;
/**
* The root cause of this <code>ConversionException</code>, compatible
* with JDK 1.4's extensions to <code>java.lang.Throwable</code>.
*/
protected Throwable cause = null;

/**
* Construct a new exception with the specified message.
*
* @param message The message describing this exception
*/
public MorphException( String message )
{
super( message );
}
/**
* Construct a new exception with the specified message.
*
* @param message The message describing this exception
*/
public MorphException(String message) {
super(message);
}

/**
* Construct a new exception with the specified message and root cause.
*
* @param message The message describing this exception
* @param cause The root cause of this exception
*/
public MorphException( String message, Throwable cause )
{
super( message );
this.cause = cause;
}
/**
* Construct a new exception with the specified message and root cause.
*
* @param message The message describing this exception
* @param cause The root cause of this exception
*/
public MorphException(String message, Throwable cause) {
super(message);
this.cause = cause;
}

// ------------------------------------------------------------- Properties
// ------------------------------------------------------------- Properties

/**
* Construct a new exception with the specified root cause.
*
* @param cause The root cause of this exception
*/
public MorphException( Throwable cause )
{
super( cause.getMessage() );
this.cause = cause;
}
/**
* Construct a new exception with the specified root cause.
*
* @param cause The root cause of this exception
*/
public MorphException(Throwable cause) {
super(cause.getMessage());
this.cause = cause;
}

/**
* Returns the cause of this exception.
*
* @return a Throwable that represents the cause of this exception
*/
public Throwable getCause()
{
return this.cause;
}
}
/**
* Returns the cause of this exception.
*
* @return a Throwable that represents the cause of this exception
*/
public Throwable getCause() {
return this.cause;
}
}
Loading

0 comments on commit 7843d5b

Please sign in to comment.