Browse Source

checkstyle

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274940 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 22 years ago
parent
commit
9dd757251f
2 changed files with 7 additions and 7 deletions
  1. +5
    -5
      src/main/org/apache/tools/ant/RuntimeConfigurable.java
  2. +2
    -2
      src/main/org/apache/tools/ant/UnknownElement.java

+ 5
- 5
src/main/org/apache/tools/ant/RuntimeConfigurable.java View File

@@ -79,7 +79,7 @@ public class RuntimeConfigurable implements Serializable {

/** Polymorphic attribute (May be XML NS attribute later) */
private static final String ANT_TYPE = "ant-type";
/** Name of the element to configure. */
private String elementTag = null;

@@ -94,7 +94,7 @@ public class RuntimeConfigurable implements Serializable {
/** the creator used to make the wrapped object */
private transient IntrospectionHelper.Creator creator;

/**
/**
* @deprecated
* XML attributes for the element.
*/
@@ -120,7 +120,7 @@ public class RuntimeConfigurable implements Serializable {

/** the polymorphic type */
private String polyType = null;
/**
* Sole constructor creating a wrapper for the specified object.
*
@@ -157,7 +157,7 @@ public class RuntimeConfigurable implements Serializable {
void setCreator(IntrospectionHelper.Creator creator) {
this.creator = creator;
}
/**
* Get the object for which this RuntimeConfigurable holds the configuration
* information
@@ -170,6 +170,7 @@ public class RuntimeConfigurable implements Serializable {

/**
* get the polymorphic type for this element
* @return the ant component type name, null if not set
*/
public String getPolyType() {
return polyType;
@@ -419,7 +420,6 @@ public class RuntimeConfigurable implements Serializable {
childTask.setRuntimeConfigurableWrapper(child);
}

if ((child.creator != null) && configureChildren) {
child.maybeConfigure(p);
child.creator.store();


+ 2
- 2
src/main/org/apache/tools/ant/UnknownElement.java View File

@@ -318,7 +318,7 @@ public class UnknownElement extends Task {
for (int i = 0; it.hasNext(); i++) {
RuntimeConfigurable childWrapper = parentWrapper.getChild(i);
UnknownElement child = (UnknownElement) it.next();
if (!handleChild(ih, parent, child,
if (!handleChild(ih, parent, child,
childWrapper)) {
if (!(parent instanceof TaskContainer)) {
ih.throwNotSupported(getProject(), parent,
@@ -480,7 +480,7 @@ public class UnknownElement extends Task {
IntrospectionHelper.Creator creator =
ih.getElementCreator(getProject(), parent, childName);
creator.setPolyType(childWrapper.getPolyType());
Object realChild=creator.create();
Object realChild = creator.create();
childWrapper.setCreator(creator);
childWrapper.setProxy(realChild);
if (realChild instanceof Task) {


Loading…
Cancel
Save