You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@velocity.apache.org by nb...@apache.org on 2007/11/29 06:47:41 UTC
svn commit: r599281 -
/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/FieldTool.java
Author: nbubna
Date: Wed Nov 28 21:47:32 2007
New Revision: 599281
URL: http://svn.apache.org/viewvc?rev=599281&view=rev
Log:
give FieldToolSubs a nicer toString()
Modified:
velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/FieldTool.java
Modified: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/FieldTool.java
URL: http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/FieldTool.java?rev=599281&r1=599280&r2=599281&view=diff
==============================================================================
--- velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/FieldTool.java (original)
+++ velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/FieldTool.java Wed Nov 28 21:47:32 2007
@@ -303,6 +303,14 @@
// otherwise, we should have stored the value directly
return o;
}
+
+ /**
+ * Return the toString() value of the internal results Map for this sub.
+ */
+ public String toString()
+ {
+ return results.toString();
+ }
}