Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 81112 invoked from network); 25 Oct 2009 11:44:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Oct 2009 11:44:39 -0000 Received: (qmail 91857 invoked by uid 500); 25 Oct 2009 11:44:38 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 91772 invoked by uid 500); 25 Oct 2009 11:44:38 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 91763 invoked by uid 99); 25 Oct 2009 11:44:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Oct 2009 11:44:38 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Oct 2009 11:44:36 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E5F8423888FF; Sun, 25 Oct 2009 11:44:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r829545 - /commons/proper/lang/trunk/src/java/org/apache/commons/lang/reflect/ConstructorUtils.java Date: Sun, 25 Oct 2009 11:44:15 -0000 To: commits@commons.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091025114415.E5F8423888FF@eris.apache.org> Author: sebb Date: Sun Oct 25 11:44:15 2009 New Revision: 829545 URL: http://svn.apache.org/viewvc?rev=829545&view=rev Log: Fix some raw types Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/reflect/ConstructorUtils.java Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/reflect/ConstructorUtils.java URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/reflect/ConstructorUtils.java?rev=829545&r1=829544&r2=829545&view=diff ============================================================================== --- commons/proper/lang/trunk/src/java/org/apache/commons/lang/reflect/ConstructorUtils.java (original) +++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/reflect/ConstructorUtils.java Sun Oct 25 11:44:15 2009 @@ -255,7 +255,7 @@ * @see Class#getConstructor * @see #getAccessibleConstructor(java.lang.reflect.Constructor) */ - public static Constructor getAccessibleConstructor(Class cls, + public static Constructor getAccessibleConstructor(Class cls, Class parameterType) { return getAccessibleConstructor(cls, new Class[] { parameterType }); } @@ -268,7 +268,7 @@ * @see Class#getConstructor * @see #getAccessibleConstructor(java.lang.reflect.Constructor) */ - public static Constructor getAccessibleConstructor(Class cls, + public static Constructor getAccessibleConstructor(Class cls, Class[] parameterTypes) { try { return getAccessibleConstructor(cls.getConstructor(parameterTypes)); @@ -283,7 +283,7 @@ * @return null if accessible constructor can not be found. * @see java.lang.SecurityManager */ - public static Constructor getAccessibleConstructor(Constructor ctor) { + public static Constructor getAccessibleConstructor(Constructor ctor) { return MemberUtils.isAccessible(ctor) && Modifier.isPublic(ctor.getDeclaringClass().getModifiers()) ? ctor : null; @@ -304,7 +304,7 @@ * @param parameterTypes find method with compatible parameters * @return a valid Constructor object. If there's no matching constructor, returns null. */ - public static Constructor getMatchingAccessibleConstructor(Class cls, + public static Constructor getMatchingAccessibleConstructor(Class cls, Class[] parameterTypes) { // see if we can find the constructor directly // most of the time this works and it's much faster