diff --git a/src/main/org/apache/tools/ant/types/DataType.java b/src/main/org/apache/tools/ant/types/DataType.java index 6edb8fd10..739d11f19 100644 --- a/src/main/org/apache/tools/ant/types/DataType.java +++ b/src/main/org/apache/tools/ant/types/DataType.java @@ -338,4 +338,15 @@ public abstract class DataType extends ProjectComponent { throw noChildrenAllowed(); } } -} \ No newline at end of file + + /** + * Basic DataType toString(). + * @return this DataType formatted as a String. + */ + public String toString() { + String d = getDescription(); + return d == null ? getDataTypeName() : getDataTypeName() + " " + d; + } + +} +