Browse Source

Remove inefficient property access

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271012 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 23 years ago
parent
commit
ea5618017b
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/util/regexp/RegexpFactory.java
  2. +1
    -1
      src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java

+ 1
- 1
src/main/org/apache/tools/ant/util/regexp/RegexpFactory.java View File

@@ -87,7 +87,7 @@ public class RegexpFactory extends RegexpMatcherFactory
if (p == null) { if (p == null) {
systemDefault = System.getProperty("ant.regexp.regexpimpl"); systemDefault = System.getProperty("ant.regexp.regexpimpl");
} else { } else {
systemDefault = (String) p.getProperties().get("ant.regexp.regexpimpl");
systemDefault = p.getProperty("ant.regexp.regexpimpl");
} }
if (systemDefault != null) { if (systemDefault != null) {


+ 1
- 1
src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java View File

@@ -90,7 +90,7 @@ public class RegexpMatcherFactory {
if (p == null) { if (p == null) {
systemDefault = System.getProperty("ant.regexp.regexpimpl"); systemDefault = System.getProperty("ant.regexp.regexpimpl");
} else { } else {
systemDefault = (String) p.getProperties().get("ant.regexp.regexpimpl");
systemDefault = p.getProperty("ant.regexp.regexpimpl");
} }
if (systemDefault != null) { if (systemDefault != null) {


Loading…
Cancel
Save