mcconnell 2003/02/04 23:08:47
Modified: src/java/org/apache/log/output/db DefaultJDBCTarget.java
Log:
Checkstyle corrections and javadoc additions.
Revision Changes Path
1.8 +9 -2
jakarta-avalon-logkit/src/java/org/apache/log/output/db/DefaultJDBCTarget.java
Index: DefaultJDBCTarget.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-logkit/src/java/org/apache/log/output/db/DefaultJDBCTarget.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- DefaultJDBCTarget.java 5 Feb 2003 06:15:56 -0000 1.7
+++ DefaultJDBCTarget.java 5 Feb 2003 07:08:47 -0000 1.8
@@ -66,6 +66,7 @@
/**
* The basic DB target for configurable output formats.
*
+ * @author <a href="mailto:[EMAIL PROTECTED]">Avalon Development
Team</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Peter Donald</a>
*/
public class DefaultJDBCTarget
@@ -225,11 +226,14 @@
* @param statement the prepard statement
* @param index the index
* @param event the log event
+ * @exception SQLException if an SQL related error occurs
+ * @exception IllegalStateException if the supplied index is out of bounds
*/
protected void specifyColumn( final PreparedStatement statement,
final int index,
final LogEvent event )
- throws SQLException
+ throws SQLException,
+ IllegalStateException
{
final ColumnInfo info = m_columns[ index ];
@@ -294,7 +298,10 @@
private String getStackTrace( final Throwable throwable )
{
- if( null == throwable ) return "";
+ if( null == throwable )
+ {
+ return "";
+ }
final StringWriter sw = new StringWriter();
throwable.printStackTrace( new java.io.PrintWriter( sw ) );
return sw.toString();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]