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/17 14:06:04 UTC
svn commit: r1447017 -
/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/ClassAccessor.java
Author: britter
Date: Sun Feb 17 13:06:04 2013
New Revision: 1447017
URL: http://svn.apache.org/r1447017
Log:
Clarify in JavaDoc how null can be passed to constructors using a ClassAccessor - no functional changes
Modified:
commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/ClassAccessor.java
Modified: commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/ClassAccessor.java
URL: http://svn.apache.org/viewvc/commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/ClassAccessor.java?rev=1447017&r1=1447016&r2=1447017&view=diff
==============================================================================
--- commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/ClassAccessor.java (original)
+++ commons/sandbox/beanutils2/trunk/src/main/java/org/apache/commons/beanutils2/ClassAccessor.java Sun Feb 17 13:06:04 2013
@@ -41,7 +41,9 @@ public interface ClassAccessor<B>
* Invokes the constructor with the parameter list represented by {@code arguments} on the wrapped class. Primitive
* types may be converted to wrapper types and vice versa to match the methods signature.
*
- * @param arguments the list of arguments to invoke the constructor with.
+ * @param arguments the list of arguments to invoke the constructor with. None of the {@code Argument} objects must
+ * be {@code null}. If you want to pass {@code null} to the constructor use
+ * {@link Argument#nullArgument(Class)}.
* @return a {@link BeanAccessor} that wrapped the new instance
*/
BeanAccessor<B> invokeConstructor( Argument<?>... arguments );
@@ -50,7 +52,9 @@ public interface ClassAccessor<B>
* Invokes the constructor with the parameter list represented by {@code arguments} on the wrapped class. Invoking
* an exact constructor in this context means to not perform any type conversations during invocation.
*
- * @param arguments the list of arguments to invoke the constructor with.
+ * @param arguments the list of arguments to invoke the constructor with. None of the {@code Argument} objects must
+ * be {@code null}. If you want to pass {@code null} to the constructor use
+ * {@link Argument#nullArgument(Class)}.
* @return a {@link BeanAccessor} that wrapped the new instance
*/
BeanAccessor<B> invokeExactConstructor( Argument<?>... arguments );