velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nbu...@apache.org
Subject svn commit: r534260 - /velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/ListTool.java
Date Tue, 01 May 2007 22:33:30 GMT
Author: nbubna
Date: Tue May  1 15:33:25 2007
New Revision: 534260

URL: http://svn.apache.org/viewvc?view=rev&rev=534260
Log:
change default key to 'lists' (as it is in showcase) as 'list' is likely to be a more common
reference

Modified:
    velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/ListTool.java

Modified: velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/ListTool.java
URL: http://svn.apache.org/viewvc/velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/ListTool.java?view=diff&rev=534260&r1=534259&r2=534260
==============================================================================
--- velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/ListTool.java
(original)
+++ velocity/tools/branches/2.x/src/main/java/org/apache/velocity/tools/generic/ListTool.java
Tue May  1 15:33:25 2007
@@ -35,16 +35,16 @@
  * <p><pre>
  * Example uses:
  *  $primes                    -> new int[] {2, 3, 5, 7}
- *  $list.size($primes)        -> 4
- *  $list.get($primes, 2)      -> 5
- *  $list.set($primes, 2, 1)   -> (primes[2] becomes 1)
- *  $list.get($primes, 2)      -> 1
- *  $list.isEmpty($primes)     -> false
- *  $list.contains($primes, 7) -> true
+ *  $lists.size($primes)        -> 4
+ *  $lists.get($primes, 2)      -> 5
+ *  $lists.set($primes, 2, 1)   -> (primes[2] becomes 1)
+ *  $lists.get($primes, 2)      -> 1
+ *  $lists.isEmpty($primes)     -> false
+ *  $lists.contains($primes, 7) -> true
  *
  * Example toolbox.xml config (if you want to use this with VelocityView):
  * &lt;tool&gt;
- *   &lt;key&gt;list&lt;/key&gt;
+ *   &lt;key&gt;lists&lt;/key&gt;
  *   &lt;scope&gt;application&lt;/scope&gt;
  *   &lt;class&gt;org.apache.velocity.tools.generic.ListTool&lt;/class&gt;
  * &lt;/tool&gt;
@@ -58,7 +58,7 @@
  * @version $Id: $
  * @since VelocityTools 1.2
  */
-@DefaultKey("list")
+@DefaultKey("lists")
 public class ListTool
 {
 



Mime
View raw message