You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ra...@apache.org on 2006/04/27 09:16:51 UTC

svn commit: r397460 - /jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/GetExecutor.java

Author: rahul
Date: Thu Apr 27 00:16:48 2006
New Revision: 397460

URL: http://svn.apache.org/viewcvs?rev=397460&view=rev
Log:
Conform to checkstyle, add missing Javadocs. No functional change.


Modified:
    jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/GetExecutor.java

Modified: jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/GetExecutor.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/GetExecutor.java?rev=397460&r1=397459&r2=397460&view=diff
==============================================================================
--- jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/GetExecutor.java (original)
+++ jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/GetExecutor.java Thu Apr 27 00:16:48 2006
@@ -32,8 +32,7 @@
  * @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
  * @version $Id$
  */
-public class GetExecutor extends AbstractExecutor
-{
+public class GetExecutor extends AbstractExecutor {
     /**
      * Container to hold the 'key' part of 
      * get(key).
@@ -42,34 +41,32 @@
     
     /**
      * Default constructor.
+     *
+     * @param r The instance log.
+     * @param ispect The JEXL introspector.
+     * @param c The class being examined.
+     * @param key The key for the get(key) operation.
+     * @throws Exception Failure while trying to obtain the pertinent method.
      */
-    public GetExecutor(Log r, org.apache.commons.jexl.util.introspection.Introspector ispect, Class c, String key)
-        throws Exception
-    {
+    public GetExecutor(Log r,
+            org.apache.commons.jexl.util.introspection.Introspector ispect,
+            Class c, String key) throws Exception {
         rlog = r;
         args[0] = key;
         method = ispect.getMethod(c, "get", args);
     }
 
     /**
-     * Execute method against context.
+     * {@inheritDoc}
      */
     public Object execute(Object o)
-        throws IllegalAccessException, InvocationTargetException
-    {
-        if (method == null)
+    throws IllegalAccessException, InvocationTargetException {
+        if (method == null) {
             return null;
+        }
 
         return method.invoke(o, args);
     }
 
 }
-
-
-
-
-
-
-
-
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org