Author: henning
Date: Sun Sep 25 06:08:51 2005
New Revision: 291402

URL: http://svn.apache.org/viewcvs?rev=291402&view=rev
Log:
- Silence a JSDK 5.0 compile warning. 

- Minor code cleanup (add braces to if(), remove trailing blanks)


Modified:
    
jakarta/velocity/core/trunk/src/java/org/apache/velocity/runtime/parser/node/PropertyExecutor.java

Modified: 
jakarta/velocity/core/trunk/src/java/org/apache/velocity/runtime/parser/node/PropertyExecutor.java
URL: 
http://svn.apache.org/viewcvs/jakarta/velocity/core/trunk/src/java/org/apache/velocity/runtime/parser/node/PropertyExecutor.java?rev=291402&r1=291401&r2=291402&view=diff
==============================================================================
--- 
jakarta/velocity/core/trunk/src/java/org/apache/velocity/runtime/parser/node/PropertyExecutor.java
 (original)
+++ 
jakarta/velocity/core/trunk/src/java/org/apache/velocity/runtime/parser/node/PropertyExecutor.java
 Sun Sep 25 06:08:51 2005
@@ -54,7 +54,7 @@
 
             /*
              *  start with get<property>
-             *  this leaves the property name 
+             *  this leaves the property name
              *  as is...
              */
             sb = new StringBuffer("get");
@@ -63,14 +63,16 @@
             methodUsed = sb.toString();
 
             method = introspector.getMethod(clazz, methodUsed, params);
-             
+
             if (method != null)
+            {
                 return;
-        
+            }
+
             /*
              *  now the convenience, flip the 1st character
              */
-         
+
             sb = new StringBuffer("get");
             sb.append(property);
 
@@ -89,8 +91,10 @@
             method = introspector.getMethod(clazz, methodUsed, params);
 
             if (method != null)
-                return; 
-            
+            {
+                return;
+            }
+
         }
         catch(Exception e)
         {
@@ -106,10 +110,10 @@
         throws IllegalAccessException,  InvocationTargetException
     {
         if (method == null)
+        {
             return null;
+        }
 
-        return method.invoke(o, null);
+        return method.invoke(o, ((Object []) null));
     }
 }
-
-



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to