You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by br...@apache.org on 2013/02/25 22:37:57 UTC

svn commit: r1449910 - /commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/MethodUtils.java

Author: britter
Date: Mon Feb 25 21:37:57 2013
New Revision: 1449910

URL: http://svn.apache.org/r1449910
Log:
Document behavior for null inputs - no functional changes

Modified:
    commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/MethodUtils.java

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/MethodUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/MethodUtils.java?rev=1449910&r1=1449909&r2=1449910&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/MethodUtils.java (original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/MethodUtils.java Mon Feb 25 21:37:57 2013
@@ -155,7 +155,8 @@ public class MethodUtils {
      *
      * @param object invoke method on this object
      * @param methodName get method with this name
-     * @param arg use this argument
+     * @param arg use this argument. May be null (this will result in calling the
+     *  parameterless method with name 'methodName').
      * @return The value returned by the invoked method
      *
      * @throws NoSuchMethodException if there is no such accessible method
@@ -196,7 +197,8 @@ public class MethodUtils {
      *
      * @param object invoke method on this object
      * @param methodName get method with this name
-     * @param args use these arguments - treat null as empty array
+     * @param args use these arguments - treat null as empty array (passing null will
+     *  result in calling the parameterless method with name 'methodName').
      * @return The value returned by the invoked method
      *
      * @throws NoSuchMethodException if there is no such accessible method
@@ -242,7 +244,8 @@ public class MethodUtils {
      *
      * @param object invoke method on this object
      * @param methodName get method with this name
-     * @param args use these arguments - treat null as empty array
+     * @param args use these arguments - treat null as empty array (passing null will
+     *  result in calling the parameterless method with name 'methodName').
      * @param parameterTypes match these parameters - treat null as empty array
      * @return The value returned by the invoked method
      *
@@ -291,7 +294,8 @@ public class MethodUtils {
      *
      * @param object invoke method on this object
      * @param methodName get method with this name
-     * @param arg use this argument
+     * @param arg use this argument. May be null (this will result in calling the
+     *  parameterless method with name 'methodName').
      * @return The value returned by the invoked method
      *
      * @throws NoSuchMethodException if there is no such accessible method
@@ -323,7 +327,8 @@ public class MethodUtils {
      *
      * @param object invoke method on this object
      * @param methodName get method with this name
-     * @param args use these arguments - treat null as empty array
+     * @param args use these arguments - treat null as empty array (passing null will
+     *  result in calling the parameterless method with name 'methodName').
      * @return The value returned by the invoked method
      *
      * @throws NoSuchMethodException if there is no such accessible method
@@ -362,7 +367,8 @@ public class MethodUtils {
      *
      * @param object invoke method on this object
      * @param methodName get method with this name
-     * @param args use these arguments - treat null as empty array
+     * @param args use these arguments - treat null as empty array (passing null will
+     *  result in calling the parameterless method with name 'methodName').
      * @param parameterTypes match these parameters - treat null as empty array
      * @return The value returned by the invoked method
      *
@@ -410,7 +416,8 @@ public class MethodUtils {
      *
      * @param objectClass invoke static method on this class
      * @param methodName get method with this name
-     * @param args use these arguments - treat null as empty array
+     * @param args use these arguments - treat null as empty array (passing null will
+     *  result in calling the parameterless method with name 'methodName').
      * @param parameterTypes match these parameters - treat null as empty array
      * @return The value returned by the invoked method
      *
@@ -468,7 +475,8 @@ public class MethodUtils {
      *
      * @param objectClass invoke static method on this class
      * @param methodName get method with this name
-     * @param arg use this argument
+     * @param arg use this argument. May be null (this will result in calling the
+     *  parameterless method with name 'methodName').
      * @return The value returned by the invoked method
      *
      * @throws NoSuchMethodException if there is no such accessible method
@@ -510,7 +518,8 @@ public class MethodUtils {
      *
      * @param objectClass invoke static method on this class
      * @param methodName get method with this name
-     * @param args use these arguments - treat null as empty array
+     * @param args use these arguments - treat null as empty array (passing null will
+     *  result in calling the parameterless method with name 'methodName').
      * @return The value returned by the invoked method
      *
      * @throws NoSuchMethodException if there is no such accessible method
@@ -557,7 +566,8 @@ public class MethodUtils {
      *
      * @param objectClass invoke static method on this class
      * @param methodName get method with this name
-     * @param args use these arguments - treat null as empty array
+     * @param args use these arguments - treat null as empty array (passing null will
+     *  result in calling the parameterless method with name 'methodName').
      * @param parameterTypes match these parameters - treat null as empty array
      * @return The value returned by the invoked method
      *
@@ -607,7 +617,8 @@ public class MethodUtils {
      *
      * @param objectClass invoke static method on this class
      * @param methodName get method with this name
-     * @param arg use this argument
+     * @param arg use this argument. May be null (this will result in calling the
+     *  parameterless method with name 'methodName').
      * @return The value returned by the invoked method
      *
      * @throws NoSuchMethodException if there is no such accessible method
@@ -639,7 +650,8 @@ public class MethodUtils {
      *
      * @param objectClass invoke static method on this class
      * @param methodName get method with this name
-     * @param args use these arguments - treat null as empty array
+     * @param args use these arguments - treat null as empty array (passing null will
+     *  result in calling the parameterless method with name 'methodName').
      * @return The value returned by the invoked method
      *
      * @throws NoSuchMethodException if there is no such accessible method