From ea5618017b70e85098751a10bc241a44131fa2bc Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Wed, 30 Jan 2002 21:28:10 +0000 Subject: [PATCH] Remove inefficient property access git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271012 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/util/regexp/RegexpFactory.java | 2 +- .../org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/org/apache/tools/ant/util/regexp/RegexpFactory.java b/src/main/org/apache/tools/ant/util/regexp/RegexpFactory.java index 1545ff06b..c924c552d 100644 --- a/src/main/org/apache/tools/ant/util/regexp/RegexpFactory.java +++ b/src/main/org/apache/tools/ant/util/regexp/RegexpFactory.java @@ -87,7 +87,7 @@ public class RegexpFactory extends RegexpMatcherFactory 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) { diff --git a/src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java b/src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java index cbbfa3fac..6ef638c90 100644 --- a/src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java +++ b/src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java @@ -90,7 +90,7 @@ public class RegexpMatcherFactory { 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) {