You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by vm...@apache.org on 2002/08/28 21:51:21 UTC
cvs commit: jakarta-cactus/framework/src/java/share/org/apache/cactus/client ServletExceptionWrapper.java
vmassol 2002/08/28 12:51:21
Modified: framework/src/java/share/org/apache/cactus/client
ServletExceptionWrapper.java
Log:
new coding conventions
Revision Changes Path
1.2 +14 -8 jakarta-cactus/framework/src/java/share/org/apache/cactus/client/ServletExceptionWrapper.java
Index: ServletExceptionWrapper.java
===================================================================
RCS file: /home/cvs/jakarta-cactus/framework/src/java/share/org/apache/cactus/client/ServletExceptionWrapper.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ServletExceptionWrapper.java 1 Mar 2002 00:43:46 -0000 1.1
+++ ServletExceptionWrapper.java 28 Aug 2002 19:51:21 -0000 1.2
@@ -113,7 +113,7 @@
* @param theClassName the server exception class name
* @param theStackTrace the server exception stack trace
*/
- public ServletExceptionWrapper(String theMessage, String theClassName,
+ public ServletExceptionWrapper(String theMessage, String theClassName,
String theStackTrace)
{
super(theMessage);
@@ -128,9 +128,12 @@
*/
public void printStackTrace(PrintStream thePs)
{
- if (this.stackTrace == null) {
+ if (this.stackTrace == null)
+ {
thePs.print(getMessage());
- } else {
+ }
+ else
+ {
thePs.print(this.stackTrace);
}
}
@@ -142,9 +145,12 @@
*/
public void printStackTrace(PrintWriter thePw)
{
- if (this.stackTrace == null) {
+ if (this.stackTrace == null)
+ {
thePw.print(getMessage());
- } else {
+ }
+ else
+ {
thePw.print(this.stackTrace);
}
}
@@ -160,11 +166,11 @@
*/
public boolean instanceOf(Class theClass)
{
- if (this.className == null) {
+ if (this.className == null)
+ {
return false;
}
return theClass.getName().equals(this.className);
}
-
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>