avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/util/src/java/org/apache/excalibur/util StackIntrospector.java
Date Tue, 18 Jun 2002 08:15:57 GMT
donaldp     2002/06/18 01:15:57

  Modified:    util/src/java/org/apache/excalibur/util
                        StackIntrospector.java
  Log:
  Remove javadoc error and some style violations.
  
  Revision  Changes    Path
  1.3       +13 -3     jakarta-avalon-excalibur/util/src/java/org/apache/excalibur/util/StackIntrospector.java
  
  Index: StackIntrospector.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/util/src/java/org/apache/excalibur/util/StackIntrospector.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- StackIntrospector.java	2 May 2002 16:54:22 -0000	1.2
  +++ StackIntrospector.java	18 Jun 2002 08:15:57 -0000	1.3
  @@ -77,7 +77,6 @@
        * Find the caller of the passed in Class.
        * May return null if caller not found on execution stack
        *
  -     * @param clazz the Class to search for on stack to find caller of
        * @return the Class of object that called parrameter class
        * @exception SecurityException if an existing SecurityManager disallows construction
        *            of another SecurityManager and thus blocks method results
  @@ -87,9 +86,13 @@
       {
           final Class[] stack = getCallStackAsClassArray();
           if( index < stack.length )
  +        {
               return stack[ index ];
  +        }
           else
  +        {
               return null;
  +        }
       }
   
       /**
  @@ -133,9 +136,13 @@
           //increment callStack index as added method call with above
           int actualIndex = index + 1;
           if( actualIndex < callStack.length )
  +        {
               return callStack[ actualIndex ];
  +        }
           else
  +        {
               return null;
  +        }
       }
   
       /**
  @@ -150,7 +157,9 @@
           final int index = getCallerIndex( clazz.getName(), callStack );
   
           if( -1 == index )
  +        {
               return null;
  +        }
           else
           {
               return callStack[ index ];
  @@ -212,7 +221,6 @@
           final int length = buffer.length();
   
           //setup state
  -        boolean found = false;
           int state = 0;
   
           //parse line
  @@ -278,7 +286,9 @@
               //If this is the first time we cound class then
               //set found to true and look for caller into class
               if( !found )
  +            {
                   found = true;
  +            }
               else
               {
                   //We have now located caller of Clazz
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message