commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
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 GMT
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 <code>null</code> 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 <code>null</code>.
      */
-    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



Mime
View raw message