mcconnell 2003/02/05 00:29:07
Modified: src/java/org/apache/log/util StackIntrospector.java
Log:
Checkstyle corrections and javadoc additions.
Revision Changes Path
1.11 +7 -3
jakarta-avalon-logkit/src/java/org/apache/log/util/StackIntrospector.java
Index: StackIntrospector.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-logkit/src/java/org/apache/log/util/StackIntrospector.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- StackIntrospector.java 5 Feb 2003 06:16:31 -0000 1.10
+++ StackIntrospector.java 5 Feb 2003 08:29:07 -0000 1.11
@@ -143,7 +143,8 @@
* @exception SecurityException if an existing SecurityManager disallows
construction
* of another SecurityManager and thus blocks method results
*/
- public static final Class getCallerClass(final Class clazz, int
stackDepthOffset) {
+ public static final Class getCallerClass(final Class clazz, int
stackDepthOffset)
+ {
final Class[] stack = getCallStack().get();
// Traverse the call stack in reverse order until we find clazz
@@ -336,7 +337,10 @@
//We are looking at the callers of Clazz
stack.append( method );
entries--;
- if( entries == 0 ) return stack.toString();
+ if( entries == 0 )
+ {
+ return stack.toString();
+ }
stack.append( "\n" );
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]