Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 72D27200AF6 for ; Sat, 11 Jun 2016 13:02:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7163D160A34; Sat, 11 Jun 2016 11:02:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DFF86160A1A for ; Sat, 11 Jun 2016 13:02:21 +0200 (CEST) Received: (qmail 64682 invoked by uid 500); 11 Jun 2016 11:02:21 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 64673 invoked by uid 99); 11 Jun 2016 11:02:21 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jun 2016 11:02:21 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id B432BE0200; Sat, 11 Jun 2016 11:02:20 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sebb@apache.org To: commits@commons.apache.org Message-Id: <8fa8e11308414d99bee25a2a96bdd1fc@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: commons-crypto git commit: Simplify (and reduce warnings) Date: Sat, 11 Jun 2016 11:02:20 +0000 (UTC) archived-at: Sat, 11 Jun 2016 11:02:22 -0000 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 Authored: Sat Jun 11 12:02:17 2016 +0100 Committer: Sebb 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(); } }