Author: nbubna
Date: Wed Dec 3 13:30:44 2008
New Revision: 723084
URL: http://svn.apache.org/viewvc?rev=723084&view=rev
Log:
better comments
Modified:
velocity/engine/trunk/src/java/org/apache/velocity/util/introspection/UberspectImpl.java
Modified:
velocity/engine/trunk/src/java/org/apache/velocity/util/introspection/UberspectImpl.java
URL:
http://svn.apache.org/viewvc/velocity/engine/trunk/src/java/org/apache/velocity/util/introspection/UberspectImpl.java?rev=723084&r1=723083&r2=723084&view=diff
==============================================================================
---
velocity/engine/trunk/src/java/org/apache/velocity/util/introspection/UberspectImpl.java
(original)
+++
velocity/engine/trunk/src/java/org/apache/velocity/util/introspection/UberspectImpl.java
Wed Dec 3 13:30:44 2008
@@ -430,9 +430,10 @@
// if no values are being passed into the vararg
if (actual.length == index)
{
- // create an empty array of the expected type
+ // copy existing args to new array
Object[] newActual = new Object[actual.length + 1];
System.arraycopy(actual, 0, newActual, 0, actual.length);
+ // create an empty array of the expected type
newActual[index] = Array.newInstance(type, 0);
actual = newActual;
}