Browse Source

do not get the exposed class unless necessary

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@440286 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 19 years ago
parent
commit
ca38198a6c
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/main/org/apache/tools/ant/ComponentHelper.java

+ 4
- 1
src/main/org/apache/tools/ant/ComponentHelper.java View File

@@ -612,9 +612,12 @@ public class ComponentHelper {
// but this is for logging only...
String name = null;
Class elementClass = element.getClass();
String elementClassname = elementClass.getName();
for (Iterator i = antTypeTable.values().iterator(); i.hasNext();) {
AntTypeDefinition def = (AntTypeDefinition) i.next();
if (elementClass == def.getExposedClass(project)) {
if (elementClassname.equals(def.getClassName())
&&
(elementClass == def.getExposedClass(project))) {
name = def.getName();
return brief ? name : "The <" + name + "> type";
}


Loading…
Cancel
Save