ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/util/regexp RegexpFactory.java RegexpMatcherFactory.java
Date Wed, 30 Jan 2002 21:28:10 GMT
conor       02/01/30 13:28:10

  Modified:    src/main/org/apache/tools/ant/util/regexp RegexpFactory.java
                        RegexpMatcherFactory.java
  Log:
  Remove inefficient property access
  
  Revision  Changes    Path
  1.4       +2 -2      jakarta-ant/src/main/org/apache/tools/ant/util/regexp/RegexpFactory.java
  
  Index: RegexpFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/util/regexp/RegexpFactory.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -w -u -r1.3 -r1.4
  --- RegexpFactory.java	9 Nov 2001 13:08:15 -0000	1.3
  +++ RegexpFactory.java	30 Jan 2002 21:28:10 -0000	1.4
  @@ -62,7 +62,7 @@
    * <code>ant.regexp.regexpimpl</code>.
    *
    * @author Matthew Inger <a href="mailto:mattinger@mindless.com">mattinger@mindless.com</a>
  - * @version $Revision: 1.3 $
  + * @version $Revision: 1.4 $
    */
   public class RegexpFactory extends RegexpMatcherFactory
   {
  @@ -87,7 +87,7 @@
           if (p == null) {
               systemDefault = System.getProperty("ant.regexp.regexpimpl");
           } else {
  -            systemDefault = (String) p.getProperties().get("ant.regexp.regexpimpl");
  +            systemDefault = p.getProperty("ant.regexp.regexpimpl");
           }
           
           if (systemDefault != null) {
  
  
  
  1.5       +1 -1      jakarta-ant/src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java
  
  Index: RegexpMatcherFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -w -u -r1.4 -r1.5
  --- RegexpMatcherFactory.java	10 Jan 2002 11:21:21 -0000	1.4
  +++ RegexpMatcherFactory.java	30 Jan 2002 21:28:10 -0000	1.5
  @@ -90,7 +90,7 @@
           if (p == null) {
               systemDefault = System.getProperty("ant.regexp.regexpimpl");
           } else {
  -            systemDefault = (String) p.getProperties().get("ant.regexp.regexpimpl");
  +            systemDefault = p.getProperty("ant.regexp.regexpimpl");
           }
           
           if (systemDefault != null) {
  
  
  

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