Browse Source

cosmetics

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276452 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 21 years ago
parent
commit
9cc95d1554
3 changed files with 6 additions and 6 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/DirectoryScanner.java
  2. +4
    -4
      src/main/org/apache/tools/ant/IntrospectionHelper.java
  3. +1
    -1
      src/main/org/apache/tools/ant/ProjectHelper.java

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

@@ -422,7 +422,7 @@ public class DirectoryScanner
* @since Ant 1.6 * @since Ant 1.6
*/ */
public static void resetDefaultExcludes() { public static void resetDefaultExcludes() {
defaultExcludes = new Vector();
defaultExcludes = new Vector();


for (int i = 0; i < DEFAULTEXCLUDES.length; i++) { for (int i = 0; i < DEFAULTEXCLUDES.length; i++) {
defaultExcludes.add(DEFAULTEXCLUDES[i]); defaultExcludes.add(DEFAULTEXCLUDES[i]);


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

@@ -414,7 +414,7 @@ public final class IntrospectionHelper implements BuildListener {
return true; return true;
} }


if ("setTaskType".equals(name)
if ("setTaskType".equals(name)
&& java.lang.String.class.equals(type)) { && java.lang.String.class.equals(type)) {
return true; return true;
} }
@@ -453,7 +453,8 @@ public final class IntrospectionHelper implements BuildListener {
* *
* @return a helper for the specified class * @return a helper for the specified class
*/ */
public static synchronized IntrospectionHelper getHelper(Project p, Class c) {
public static synchronized IntrospectionHelper getHelper(Project p,
Class c) {
IntrospectionHelper ih = (IntrospectionHelper) helpers.get(c); IntrospectionHelper ih = (IntrospectionHelper) helpers.get(c);
if (ih == null) { if (ih == null) {
ih = new IntrospectionHelper(c); ih = new IntrospectionHelper(c);
@@ -1113,8 +1114,7 @@ public final class IntrospectionHelper implements BuildListener {
Class elementClass = nestedCreator.getElementClass(); Class elementClass = nestedCreator.getElementClass();
ComponentHelper helper = ComponentHelper helper =
ComponentHelper.getComponentHelper(project); ComponentHelper.getComponentHelper(project);
nestedObject = ComponentHelper.getComponentHelper(project)
.createComponent(polyType);
nestedObject = helper.createComponent(polyType);
if (nestedObject == null) { if (nestedObject == null) {
throw new BuildException( throw new BuildException(
"Unable to create object of type " + polyType); "Unable to create object of type " + polyType);


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

@@ -309,7 +309,7 @@ public class ProjectHelper {
for (int i = 0; i < attrs.getLength(); i++) { for (int i = 0; i < attrs.getLength(); i++) {
// reflect these into the target // reflect these into the target
String value = replaceProperties(project, attrs.getValue(i), String value = replaceProperties(project, attrs.getValue(i),
project.getProperties());
project.getProperties());
try { try {
ih.setAttribute(project, target, ih.setAttribute(project, target,
attrs.getName(i).toLowerCase(Locale.US), value); attrs.getName(i).toLowerCase(Locale.US), value);


Loading…
Cancel
Save