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 06:16:31 GMT
mcconnell    2003/02/04 22:16:31

  Modified:    src/java/org/apache/log/util StackIntrospector.java
  Log:
  Checkstyle corrections and javadoc additions.
  
  Revision  Changes    Path
  1.10      +23 -5     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.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- StackIntrospector.java	4 Feb 2003 13:50:33 -0000	1.9
  +++ StackIntrospector.java	5 Feb 2003 06:16:31 -0000	1.10
  @@ -60,6 +60,7 @@
   /**
    * A set of utilities to inspect current stack frame.
    *
  + * @author <a href="mailto:avalon-dev@jakarta.apache.org">Avalon Development Team</a>
    * @author <a href="mailto:sylvain@apache.org">Sylvain Wallez</a>
    * @author <a href="mailto:stuart.roebuck@adolos.com">Stuart Roebuck</a>
    * @version CVS $Revision$ $Date$
  @@ -164,6 +165,7 @@
        * created, this includes the path name and the source filename and line
        * number if the source was compiled with debugging on.
        *
  +     * @param clazz the Class to search for on stack to find caller of
        * @return The method path name in the form "the.package.path.Method"
        */
       public static final String getCallerMethod( final Class clazz )
  @@ -193,12 +195,18 @@
               {
                   case 0:
                       //Strip the first line from input
  -                    if( '\n' == ch ) state = 1;
  +                    if( '\n' == ch ) 
  +                    {
  +                        state = 1;
  +                    }
                       break;
   
                   case 1:
                       //strip 't' from 'at'
  -                    if( 't' == ch ) state = 2;
  +                    if( 't' == ch )
  +                    {
  +                        state = 2;
  +                    }
                       break;
   
                   case 2:
  @@ -210,7 +218,9 @@
                   case 3:
                       //accumulate all characters to end of line
                       if( '\n' != ch )
  +                    {
                           line.append( ch );
  +                    }
                       else
                       {
                           //At this stage you have the line that looks like
  @@ -281,12 +291,18 @@
               {
                   case 0:
                       //Strip the first line from input
  -                    if( '\n' == ch ) state = 1;
  +                    if( '\n' == ch ) 
  +                    {
  +                        state = 1;
  +                    }
                       break;
   
                   case 1:
                       //strip 't' from 'at'
  -                    if( 't' == ch ) state = 2;
  +                    if( 't' == ch )
  +                    {
  +                        state = 2;
  +                    }
                       break;
   
                   case 2:
  @@ -298,7 +314,9 @@
                   case 3:
                       //accumulate all characters to end of line
                       if( '\n' != ch )
  +                    {
                           line.append( ch );
  +                    }
                       else
                       {
                           //At this stage you have the line that looks like
  
  
  

---------------------------------------------------------------------
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