Checkstyle and trailing spaces.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1082304 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oliver Heger 2011-03-16 21:24:13 +00:00
parent 79fb5075bc
commit c0b8a99ab0
1 changed files with 30 additions and 21 deletions

View File

@ -75,6 +75,7 @@ public ConstructorUtils() {
*
* <p>The signatures should be assignment compatible.</p>
*
* @param <T> the type to be constructed
* @param cls the class to be constructed.
* @param args actual argument array
* @return new instance of <code>klazz</code>
@ -109,6 +110,7 @@ public static <T> T invokeConstructor(Class<T> cls, Object... args)
*
* <p>The signatures should be assignment compatible.</p>
*
* @param <T> the type to be constructed
* @param cls the class to be constructed.
* @param args actual argument array
* @param parameterTypes parameter types array
@ -146,6 +148,7 @@ public static <T> T invokeConstructor(Class<T> cls, Object[] args, Class<?>[] pa
*
* <p>The signatures should match exactly.</p>
*
* @param <T> the type to be constructed
* @param cls the class to be constructed.
* @param args actual argument array
* @return new instance of <code>klazz</code>
@ -181,6 +184,7 @@ public static <T> T invokeExactConstructor(Class<T> cls, Object... args)
*
* <p>The signatures should match exactly.</p>
*
* @param <T> the type to be constructed
* @param cls the class to be constructed.
* @param args actual argument array
* @param parameterTypes parameter types array
@ -211,6 +215,8 @@ public static <T> T invokeExactConstructor(Class<T> cls, Object[] args,
/**
* Returns a constructor given a class and signature.
*
* @param <T> the type to be constructed
* @param cls the class to be constructed
* @param parameterTypes the parameter array
* @return null if matching accessible constructor can not be found
@ -228,6 +234,8 @@ public static <T> Constructor<T> getAccessibleConstructor(Class<T> cls,
/**
* Returns accessible version of the given constructor.
*
* @param <T> the type to be constructed
* @param ctor prototype constructor object.
* @return <code>null</code> if accessible constructor can not be found.
* @see java.lang.SecurityManager
@ -248,6 +256,7 @@ public static <T> Constructor<T> getAccessibleConstructor(Constructor<T> ctor) {
* signatures are assignment compatible with the parameter types. The first
* matching constructor is returned.</p>
*
* @param <T> the type to be constructed
* @param cls find constructor for this class
* @param parameterTypes find method with compatible parameters
* @return a valid Constructor object. If there's no matching constructor,