From 6622091f9baa46aa099026c57c1a49cefcd8f272 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Sat, 24 Oct 2009 13:43:11 +0000 Subject: [PATCH] Fix internal raw types git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@829367 13f79535-47bb-0310-9956-ffa450edef68 --- .../commons/lang/reflect/ConstructorUtils.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/java/org/apache/commons/lang/reflect/ConstructorUtils.java b/src/java/org/apache/commons/lang/reflect/ConstructorUtils.java index 78a1e516e..82d5f52b0 100644 --- a/src/java/org/apache/commons/lang/reflect/ConstructorUtils.java +++ b/src/java/org/apache/commons/lang/reflect/ConstructorUtils.java @@ -145,7 +145,7 @@ public class ConstructorUtils { if (args == null) { args = ArrayUtils.EMPTY_OBJECT_ARRAY; } - Constructor ctor = getMatchingAccessibleConstructor(cls, parameterTypes); + Constructor ctor = getMatchingAccessibleConstructor(cls, parameterTypes); if (null == ctor) { throw new NoSuchMethodException( "No such accessible constructor on object: " @@ -238,7 +238,7 @@ public class ConstructorUtils { if (parameterTypes == null) { parameterTypes = ArrayUtils.EMPTY_CLASS_ARRAY; } - Constructor ctor = getAccessibleConstructor(cls, parameterTypes); + Constructor ctor = getAccessibleConstructor(cls, parameterTypes); if (null == ctor) { throw new NoSuchMethodException( "No such accessible constructor on object: " @@ -309,20 +309,20 @@ public class ConstructorUtils { // see if we can find the constructor directly // most of the time this works and it's much faster try { - Constructor ctor = cls.getConstructor(parameterTypes); + Constructor ctor = cls.getConstructor(parameterTypes); MemberUtils.setAccessibleWorkaround(ctor); return ctor; } catch (NoSuchMethodException e) { /* SWALLOW */ } - Constructor result = null; + Constructor result = null; // search through all constructors - Constructor[] ctors = cls.getConstructors(); + Constructor[] ctors = cls.getConstructors(); for (int i = 0; i < ctors.length; i++) { // compare parameters if (ClassUtils.isAssignable(parameterTypes, ctors[i] .getParameterTypes(), true)) { // get accessible version of method - Constructor ctor = getAccessibleConstructor(ctors[i]); + Constructor ctor = getAccessibleConstructor(ctors[i]); if (ctor != null) { MemberUtils.setAccessibleWorkaround(ctor); if (result == null