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/24 12:20:41 UTC
svn commit: r1449455 -
/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/ConstructorUtils.java
Author: britter
Date: Sun Feb 24 11:20:41 2013
New Revision: 1449455
URL: http://svn.apache.org/r1449455
Log:
Remove obsolete empty lines
Modified:
commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/ConstructorUtils.java
Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/ConstructorUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/ConstructorUtils.java?rev=1449455&r1=1449454&r2=1449455&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/ConstructorUtils.java (original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/ConstructorUtils.java Sun Feb 24 11:20:41 2013
@@ -83,7 +83,6 @@ public class ConstructorUtils {
Object[] args = { arg };
return invokeConstructor(klass, args);
-
}
/**
@@ -120,7 +119,6 @@ public class ConstructorUtils {
parameterTypes[i] = args[i].getClass();
}
return invokeConstructor(klass, args, parameterTypes);
-
}
/**
@@ -194,7 +192,6 @@ public class ConstructorUtils {
Object[] args = { arg };
return invokeExactConstructor(klass, args);
-
}
/**
@@ -221,6 +218,7 @@ public class ConstructorUtils {
IllegalAccessException,
InvocationTargetException,
InstantiationException {
+
if (null == args) {
args = EMPTY_OBJECT_ARRAY;
}
@@ -230,7 +228,6 @@ public class ConstructorUtils {
parameterTypes[i] = args[i].getClass();
}
return invokeExactConstructor(klass, args, parameterTypes);
-
}
/**
@@ -275,7 +272,6 @@ public class ConstructorUtils {
"No such accessible constructor on object: " + klass.getName());
}
return ctor.newInstance(args);
-
}
/**
@@ -292,7 +288,6 @@ public class ConstructorUtils {
Class[] parameterTypes = { parameterType };
return getAccessibleConstructor(klass, parameterTypes);
-
}
/**
@@ -313,7 +308,6 @@ public class ConstructorUtils {
} catch (NoSuchMethodException e) {
return (null);
}
-
}
/**
@@ -342,7 +336,6 @@ public class ConstructorUtils {
// what else can we do?
return null;
-
}
// -------------------------------------------------------- Private Methods
@@ -381,7 +374,7 @@ public class ConstructorUtils {
// modifer is public.
//
// The following workaround solves the problem but will only
- // work from sufficiently privilages code.
+ // work from sufficiently privilages code.
//
// Better workarounds would be greatfully accepted.
//
@@ -394,7 +387,7 @@ public class ConstructorUtils {
} catch (NoSuchMethodException e) { /* SWALLOW */
}
- // search through all methods
+ // search through all methods
int paramSize = parameterTypes.length;
Constructor[] ctors = clazz.getConstructors();
for (int i = 0, size = ctors.length; i < size; i++) {