commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject commons-crypto git commit: Remove redundant null check: The lvar writer cannot be null.
Date Tue, 07 Jun 2016 03:07:29 GMT
Repository: commons-crypto
Updated Branches:
  refs/heads/master 23963ed81 -> 464fa96fe


Remove redundant null check: The lvar writer cannot be 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/464fa96f
Tree: http://git-wip-us.apache.org/repos/asf/commons-crypto/tree/464fa96f
Diff: http://git-wip-us.apache.org/repos/asf/commons-crypto/diff/464fa96f

Branch: refs/heads/master
Commit: 464fa96fe3d00106e55d73460917eab7b66d3e5a
Parents: 23963ed
Author: ggregory <ggregory@apache.org>
Authored: Mon Jun 6 20:07:26 2016 -0700
Committer: ggregory <ggregory@apache.org>
Committed: Mon Jun 6 20:07:26 2016 -0700

----------------------------------------------------------------------
 .../java/org/apache/commons/crypto/utils/NativeCodeLoader.java   | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/464fa96f/src/main/java/org/apache/commons/crypto/utils/NativeCodeLoader.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/crypto/utils/NativeCodeLoader.java b/src/main/java/org/apache/commons/crypto/utils/NativeCodeLoader.java
index df41b54..ff12000 100644
--- a/src/main/java/org/apache/commons/crypto/utils/NativeCodeLoader.java
+++ b/src/main/java/org/apache/commons/crypto/utils/NativeCodeLoader.java
@@ -164,9 +164,7 @@ public class NativeCodeLoader {
                 // Delete the extracted lib file on JVM exit.
                 extractedLibFile.deleteOnExit();
 
-                if (writer != null) {
-                    writer.close();
-                }
+                writer.close();
 
                 if (reader != null) {
                     reader.close();


Mime
View raw message