avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: jakarta-avalon-logkit/src/java/org/apache/log/util StackIntrospector.java
Date Wed, 05 Feb 2003 08:29:07 GMT
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: avalon-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-cvs-help@jakarta.apache.org


Mime
View raw message