commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject commons-crypto git commit: Simplify (and reduce warnings)
Date Sat, 11 Jun 2016 11:02:20 GMT
Repository: commons-crypto
Updated Branches:
  refs/heads/master e99cf911e -> 28fc18d23


Simplify (and reduce warnings)

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

Branch: refs/heads/master
Commit: 28fc18d23f5d87e89b13d7ccc305ad96b252bf22
Parents: e99cf91
Author: Sebb <sebb@apache.org>
Authored: Sat Jun 11 12:02:17 2016 +0100
Committer: Sebb <sebb@apache.org>
Committed: Sat Jun 11 12:02:17 2016 +0100

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


http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/28fc18d2/src/main/java/org/apache/commons/crypto/utils/Utils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/crypto/utils/Utils.java b/src/main/java/org/apache/commons/crypto/utils/Utils.java
index 6d9ca3b..a085a94 100644
--- a/src/main/java/org/apache/commons/crypto/utils/Utils.java
+++ b/src/main/java/org/apache/commons/crypto/utils/Utils.java
@@ -106,9 +106,7 @@ public class Utils {
      */
     public static void freeDirectBuffer(ByteBuffer buffer) {
         if (buffer instanceof sun.nio.ch.DirectBuffer) {
-            final sun.misc.Cleaner bufferCleaner = ((sun.nio.ch.DirectBuffer) buffer)
-                    .cleaner();
-            bufferCleaner.clean();
+            ((sun.nio.ch.DirectBuffer) buffer).cleaner().clean();
         }
     }
 


Mime
View raw message