commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject [2/2] commons-crypto git commit: Remove unnecessary assignment to null. Also makes sure we're not accedentially returning null.
Date Sun, 12 Jun 2016 11:52:19 GMT
Remove unnecessary assignment to null. Also makes sure we're not accedentially returning null.


Project: http://git-wip-us.apache.org/repos/asf/commons-crypto/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-crypto/commit/305b8260
Tree: http://git-wip-us.apache.org/repos/asf/commons-crypto/tree/305b8260
Diff: http://git-wip-us.apache.org/repos/asf/commons-crypto/diff/305b8260

Branch: refs/heads/master
Commit: 305b8260880a64ed3667433c996da996ef713e4c
Parents: d7423f0
Author: Benedikt Ritter <beneritter@gmail.com>
Authored: Sun Jun 12 13:52:05 2016 +0200
Committer: Benedikt Ritter <beneritter@gmail.com>
Committed: Sun Jun 12 13:52:05 2016 +0200

----------------------------------------------------------------------
 src/main/java/org/apache/commons/crypto/utils/ReflectionUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/305b8260/src/main/java/org/apache/commons/crypto/utils/ReflectionUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/crypto/utils/ReflectionUtils.java b/src/main/java/org/apache/commons/crypto/utils/ReflectionUtils.java
index 3e32fee..88d292a 100644
--- a/src/main/java/org/apache/commons/crypto/utils/ReflectionUtils.java
+++ b/src/main/java/org/apache/commons/crypto/utils/ReflectionUtils.java
@@ -70,7 +70,7 @@ public class ReflectionUtils {
      */
     public static <T> T newInstance(Class<T> klass, Object... args) {
         try {
-            Constructor<T> ctor = null;
+            Constructor<T> ctor;
 
             if (args.length == 0) {
                 ctor = klass.getDeclaredConstructor();


Mime
View raw message