Browse Source

add a basic toString() to DataTypes.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278486 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 20 years ago
parent
commit
2df32fe60e
1 changed files with 12 additions and 1 deletions
  1. +12
    -1
      src/main/org/apache/tools/ant/types/DataType.java

+ 12
- 1
src/main/org/apache/tools/ant/types/DataType.java View File

@@ -338,4 +338,15 @@ public abstract class DataType extends ProjectComponent {
throw noChildrenAllowed();
}
}
}

/**
* Basic DataType toString().
* @return this DataType formatted as a String.
*/
public String toString() {
String d = getDescription();
return d == null ? getDataTypeName() : getDataTypeName() + " " + d;
}

}


Loading…
Cancel
Save