ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant-myrmidon/aut/src/java/org/apache/aut/jprocess DemuxProperties.java
Date Tue, 25 Jun 2002 02:35:08 GMT
donaldp     2002/06/24 19:35:08

  Modified:    aut/src/java/org/apache/aut/jprocess DemuxProperties.java
  Log:
  Inline some method calls.
  
  Revision  Changes    Path
  1.4       +17 -33    jakarta-ant-myrmidon/aut/src/java/org/apache/aut/jprocess/DemuxProperties.java
  
  Index: DemuxProperties.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/aut/src/java/org/apache/aut/jprocess/DemuxProperties.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DemuxProperties.java	26 Apr 2002 06:44:57 -0000	1.3
  +++ DemuxProperties.java	25 Jun 2002 02:35:08 -0000	1.4
  @@ -47,99 +47,83 @@
   
       public Object get( final Object key )
       {
  -        final Properties properties = getProperties();
  -        return properties.get( key );
  +        return getProperties().get( key );
       }
   
       public Object put( final Object key,
                          final Object value )
       {
  -        final Properties properties = getProperties();
  -        return properties.put( key, value );
  +        return getProperties().put( key, value );
       }
   
       public Object remove( final Object key )
       {
  -        final Properties properties = getProperties();
  -        return properties.remove( key );
  +        return getProperties().remove( key );
       }
   
       public final int size()
       {
  -        final Properties properties = getProperties();
  -        return properties.size();
  +        return getProperties().size();
       }
   
       public final boolean isEmpty()
       {
  -        final Properties properties = getProperties();
  -        return properties.isEmpty();
  +        return getProperties().isEmpty();
       }
   
       public Enumeration keys()
       {
  -        final Properties properties = getProperties();
  -        return properties.keys();
  +        return getProperties().keys();
       }
   
       public Enumeration elements()
       {
  -        final Properties properties = getProperties();
  -        return properties.keys();
  +        return getProperties().keys();
       }
   
       public boolean contains( final Object value )
       {
  -        final Properties properties = getProperties();
  -        return properties.contains( value );
  +        return getProperties().contains( value );
       }
   
       public boolean containsKey( final Object key )
       {
  -        final Properties properties = getProperties();
  -        return properties.containsKey( key );
  +        return getProperties().containsKey( key );
       }
   
       public void clear()
       {
  -        final Properties properties = getProperties();
  -        properties.clear();
  +        getProperties().clear();
       }
   
       public Object clone()
       {
  -        final Properties properties = getProperties();
  -        return properties.clone();
  +        return getProperties().clone();
       }
   
       public String toString()
       {
  -        final Properties properties = getProperties();
  -        return properties.toString();
  +        return getProperties().toString();
       }
   
       public final String getProperty( final String key )
       {
  -        final Properties properties = getProperties();
  -        return properties.getProperty( key );
  +        return getProperties().getProperty( key );
       }
   
       public final Enumeration propertyNames()
       {
  -        final Properties properties = getProperties();
  -        return properties.propertyNames();
  +        return getProperties().propertyNames();
       }
   
       public final void list( final PrintStream out )
       {
  -        final Properties properties = getProperties();
  -        properties.list( out );
  +        getProperties().list( out );
       }
   
       public final void list( final PrintWriter out )
       {
  -        final Properties properties = getProperties();
  -        properties.list( out );
  +        getProperties().list( out );
       }
   
       /**
  
  
  

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


Mime
View raw message