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 DefaultBlockContext.java
Date Sun, 18 Nov 2001 07:56:08 GMT
donaldp     01/11/17 23:56:08

  Modified:    src/java/org/apache/avalon/phoenix/components/application
                        DefaultBlockContext.java
  Log:
  Squished the if to make it easier to read.
  
  Revision  Changes    Path
  1.8       +3 -6      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/application/DefaultBlockContext.java
  
  Index: DefaultBlockContext.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/application/DefaultBlockContext.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- DefaultBlockContext.java	2001/11/17 07:09:50	1.7
  +++ DefaultBlockContext.java	2001/11/18 07:56:08	1.8
  @@ -50,12 +50,9 @@
           throws ContextException
       {
           final SarMetaData metaData = m_frame.getMetaData();
  -        if( BlockContext.APP_NAME.equals( key ) )
  -            return metaData.getName();
  -        else if( BlockContext.APP_HOME_DIR.equals( key ) )
  -            return metaData.getHomeDirectory();
  -        else if( BlockContext.NAME.equals( key ) )
  -            return m_name;
  +        if( BlockContext.APP_NAME.equals( key ) ) return metaData.getName();
  +        else if( BlockContext.APP_HOME_DIR.equals( key ) ) return metaData.getHomeDirectory();
  +        else if( BlockContext.NAME.equals( key ) ) return m_name;
           else
           {
               throw new ContextException( "Unknown key: " + key );
  
  
  

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