Author: nbubna
Date: Thu Jan 1 10:56:10 2009
New Revision: 730588
URL: http://svn.apache.org/viewvc?rev=730588&view=rev
Log:
fix a few jdk5-isms
Modified:
velocity/engine/trunk/src/test/org/apache/velocity/test/IndexTestCase.java
Modified:
velocity/engine/trunk/src/test/org/apache/velocity/test/IndexTestCase.java
URL:
http://svn.apache.org/viewvc/velocity/engine/trunk/src/test/org/apache/velocity/test/IndexTestCase.java?rev=730588&r1=730587&r2=730588&view=diff
==============================================================================
--- velocity/engine/trunk/src/test/org/apache/velocity/test/IndexTestCase.java
(original)
+++ velocity/engine/trunk/src/test/org/apache/velocity/test/IndexTestCase.java
Thu Jan 1 10:56:10 2009
@@ -35,18 +35,18 @@
{
super.setUp();
engine.setProperty(RuntimeConstants.RUNTIME_REFERENCES_STRICT,
Boolean.TRUE);
- engine.setProperty(RuntimeConstants.COUNTER_INITIAL_VALUE, 0);
+ engine.setProperty(RuntimeConstants.COUNTER_INITIAL_VALUE, new
Integer(0));
context.put("NULL", null);
- Integer[] a = {1, 2, 3};
+ int[] a = {1, 2, 3};
context.put("a", a);
String[] str = {"a", "ab", "abc"};
context.put("str", str);
ArrayList alist = new ArrayList();
- alist.add(Integer.valueOf(1));
- alist.add(Integer.valueOf(2));
- alist.add(Integer.valueOf(3));
+ alist.add(new Integer(1));
+ alist.add(new Integer(2));
+ alist.add(new Integer(3));
alist.add(a);
alist.add(null);
context.put("alist", alist);