commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ebo...@apache.org
Subject cvs commit: jakarta-commons/configuration/src/java/org/apache/commons/configuration AbstractConfiguration.java
Date Mon, 12 Jul 2004 14:36:58 GMT
ebourg      2004/07/12 07:36:58

  Modified:    configuration/src/java/org/apache/commons/configuration
                        AbstractConfiguration.java
  Log:
  Simplified implementation of getKeys(String prefix)
  
  Revision  Changes    Path
  1.18      +3 -10     jakarta-commons/configuration/src/java/org/apache/commons/configuration/AbstractConfiguration.java
  
  Index: AbstractConfiguration.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/configuration/src/java/org/apache/commons/configuration/AbstractConfiguration.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- AbstractConfiguration.java	5 Jul 2004 09:54:17 -0000	1.17
  +++ AbstractConfiguration.java	12 Jul 2004 14:36:58 -0000	1.18
  @@ -290,15 +290,8 @@
           {
               public boolean evaluate(Object obj)
               {
  -                boolean matching = false;
  -
  -                if (obj instanceof String)
  -                {
  -                    String key = (String) obj;
  -                    matching = key.startsWith(prefix + ".") || key.equals(prefix);
  -                }
  -
  -                return matching;
  +                String key = (String) obj;
  +                return key.startsWith(prefix + ".") || key.equals(prefix);
               }
           });
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message