From: Adrian Cumiskey Date: Wed, 5 Dec 2007 17:25:07 +0000 (+0000) Subject: Checkstyle fixes X-Git-Tag: fop-0_95beta~246 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a8ba0681a01326871a60fa4724080e39d3fc1034;p=xmlgraphics-fop.git Checkstyle fixes git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@601427 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/render/afp/exceptions/NestedRuntimeException.java b/src/java/org/apache/fop/render/afp/exceptions/NestedRuntimeException.java index 0554dd90a..2a5eb6d5f 100644 --- a/src/java/org/apache/fop/render/afp/exceptions/NestedRuntimeException.java +++ b/src/java/org/apache/fop/render/afp/exceptions/NestedRuntimeException.java @@ -32,7 +32,7 @@ import java.io.PrintWriter; public abstract class NestedRuntimeException extends RuntimeException { /** Root cause of this nested exception */ - private Throwable _underlyingException; + private Throwable underlyingException; /** * Construct a NestedRuntimeException with the specified detail message. @@ -50,7 +50,7 @@ public abstract class NestedRuntimeException extends RuntimeException { */ public NestedRuntimeException(String msg, Throwable t) { super(msg); - _underlyingException = t; + underlyingException = t; } @@ -60,7 +60,7 @@ public abstract class NestedRuntimeException extends RuntimeException { */ public Throwable getUnderlyingException() { - return _underlyingException; + return underlyingException; } @@ -71,12 +71,12 @@ public abstract class NestedRuntimeException extends RuntimeException { */ public String getMessage() { - if (_underlyingException == null) { + if (underlyingException == null) { return super.getMessage(); } else { return super.getMessage() + "; nested exception is " - + _underlyingException.getClass().getName(); + + underlyingException.getClass().getName(); } } @@ -86,11 +86,11 @@ public abstract class NestedRuntimeException extends RuntimeException { * @param ps the print stream */ public void printStackTrace(PrintStream ps) { - if (_underlyingException == null) { + if (underlyingException == null) { super.printStackTrace(ps); } else { ps.println(this); - _underlyingException.printStackTrace(ps); + underlyingException.printStackTrace(ps); } } @@ -99,11 +99,11 @@ public abstract class NestedRuntimeException extends RuntimeException { * @param pw the print writer */ public void printStackTrace(PrintWriter pw) { - if (_underlyingException == null) { + if (underlyingException == null) { super.printStackTrace(pw); } else { pw.println(this); - _underlyingException.printStackTrace(pw); + underlyingException.printStackTrace(pw); } }