velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nbu...@apache.org
Subject svn commit: r748563 - /velocity/engine/branches/2.0_Exp/src/java/org/apache/velocity/util/introspection/UberspectImpl.java
Date Fri, 27 Feb 2009 15:46:59 GMT
Author: nbubna
Date: Fri Feb 27 15:46:58 2009
New Revision: 748563

URL: http://svn.apache.org/viewvc?rev=748563&view=rev
Log:
fix compiler warnings

Modified:
    velocity/engine/branches/2.0_Exp/src/java/org/apache/velocity/util/introspection/UberspectImpl.java

Modified: velocity/engine/branches/2.0_Exp/src/java/org/apache/velocity/util/introspection/UberspectImpl.java
URL: http://svn.apache.org/viewvc/velocity/engine/branches/2.0_Exp/src/java/org/apache/velocity/util/introspection/UberspectImpl.java?rev=748563&r1=748562&r2=748563&view=diff
==============================================================================
--- velocity/engine/branches/2.0_Exp/src/java/org/apache/velocity/util/introspection/UberspectImpl.java
(original)
+++ velocity/engine/branches/2.0_Exp/src/java/org/apache/velocity/util/introspection/UberspectImpl.java
Fri Feb 27 15:46:58 2009
@@ -136,13 +136,13 @@
             Class type = obj.getClass();
             try
             {
-                Method iter = type.getMethod("iterator", null);
+                Method iter = type.getMethod("iterator");
                 Class returns = iter.getReturnType();
                 if (Iterator.class.isAssignableFrom(returns))
                 {
                     try
                     {
-                        return (Iterator)iter.invoke(obj, null);
+                        return (Iterator)iter.invoke(obj);
                     } 
                     catch (Exception e)
                     {



Mime
View raw message