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-phoenix/src/java/org/apache/avalon/phoenix/components/application DefaultApplication.java
Date Mon, 20 May 2002 12:01:33 GMT
donaldp     02/05/20 05:01:33

  Modified:    src/java/org/apache/avalon/phoenix/components/application
                        DefaultApplication.java
  Log:
  Fix checkstyle violations
  
  Revision  Changes    Path
  1.24      +15 -3     jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/application/DefaultApplication.java
  
  Index: DefaultApplication.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/application/DefaultApplication.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- DefaultApplication.java	19 May 2002 05:38:29 -0000	1.23
  +++ DefaultApplication.java	20 May 2002 12:01:33 -0000	1.24
  @@ -19,8 +19,8 @@
   import org.apache.avalon.framework.logger.Logger;
   import org.apache.avalon.phoenix.ApplicationListener;
   import org.apache.avalon.phoenix.BlockListener;
  -import org.apache.avalon.phoenix.components.lifecycle.LifecycleHelper;
   import org.apache.avalon.phoenix.components.lifecycle.LifecycleException;
  +import org.apache.avalon.phoenix.components.lifecycle.LifecycleHelper;
   import org.apache.avalon.phoenix.interfaces.Application;
   import org.apache.avalon.phoenix.interfaces.ApplicationContext;
   import org.apache.avalon.phoenix.interfaces.ApplicationException;
  @@ -213,11 +213,23 @@
           return (String[])m_entrys.keySet().toArray( new String[ 0 ] );
       }
   
  +    /**
  +     *
  +     *
  +     * @param name
  +     * @return
  +     */
       public Object getBlock( final String name )
       {
           final BlockEntry entry = (BlockEntry)m_entrys.get( name );
  -        if( null == entry ) return null;
  -        return entry.getProxy();
  +        if( null == entry )
  +        {
  +            return null;
  +        }
  +        else
  +        {
  +            return entry.getProxy();
  +        }
       }
   
       /**
  
  
  

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