mpoeschl 02/05/10 05:22:57
Modified: src/java/org/apache/torque TorqueRuntimeException.java
Log:
remove unused imports
Revision Changes Path
1.6 +9 -10
jakarta-turbine-torque/src/java/org/apache/torque/TorqueRuntimeException.java
Index: TorqueRuntimeException.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/TorqueRuntimeException.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- TorqueRuntimeException.java 14 Mar 2002 00:59:29 -0000 1.5
+++ TorqueRuntimeException.java 10 May 2002 12:22:57 -0000 1.6
@@ -54,16 +54,14 @@
* <http://www.apache.org/>.
*/
-import java.io.OutputStream;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.io.StringWriter;
-import java.io.Writer;
import java.util.LinkedList;
import java.util.StringTokenizer;
/**
- * This is a base class of runtime exeptions thrown by Torque.
+ * This is a base class of runtime exeptions thrown by Torque. <p>
*
* This class represents a non-checked type exception (see
* {@link java.lang.RuntimeException}).
@@ -77,7 +75,7 @@
* way.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Rafal Krzewski</a>
- * @version $Id: TorqueRuntimeException.java,v 1.5 2002/03/14 00:59:29 mpoeschl Exp
$
+ * @version $Id: TorqueRuntimeException.java,v 1.6 2002/05/10 12:22:57 mpoeschl Exp
$
*/
public class TorqueRuntimeException
extends RuntimeException
@@ -155,7 +153,7 @@
{
synchronized(out)
{
- PrintWriter pw=new PrintWriter(out, false);
+ PrintWriter pw = new PrintWriter(out, false);
printStackTrace(pw);
// flush the PrintWriter before it's GCed
pw.flush();
@@ -189,23 +187,24 @@
{
if(nested instanceof TorqueRuntimeException)
{
- ((TorqueRuntimeException)nested).printStackTrace(out, st.length -
2);
+ ((TorqueRuntimeException) nested)
+ .printStackTrace(out, st.length - 2);
}
else if(nested instanceof TorqueException)
{
- ((TorqueException)nested).printStackTrace(out);
+ ((TorqueException) nested).printStackTrace(out);
}
else
{
String[] nst = captureStackTrace(nested);
- for(int i = 0; i<nst.length - st.length + 2; i++)
+ for(int i = 0; i < nst.length - st.length + 2; i++)
{
out.println(nst[i]);
}
}
out.print("rethrown as ");
}
- for(int i=0; i<st.length - skip; i++)
+ for(int i = 0; i < st.length - skip; i++)
{
out.println(st[i]);
}
@@ -253,6 +252,6 @@
{
list.add(st.nextToken());
}
- return (String [])list.toArray(new String[] {});
+ return (String[]) list.toArray(new String[] {});
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>