Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BD7FF1976A for ; Thu, 21 Apr 2016 13:46:36 +0000 (UTC) Received: (qmail 60765 invoked by uid 500); 21 Apr 2016 13:46:36 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 60703 invoked by uid 500); 21 Apr 2016 13:46:36 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 60694 invoked by uid 99); 21 Apr 2016 13:46:36 -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; Thu, 21 Apr 2016 13:46:36 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 78762DFF41; Thu, 21 Apr 2016 13:46:36 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: coheigea@apache.org To: commits@cxf.apache.org Message-Id: <7c28987cfa3e4d0f9764f62eb0f4f10f@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: cxf git commit: Fixing build Date: Thu, 21 Apr 2016 13:46:36 +0000 (UTC) Repository: cxf Updated Branches: refs/heads/3.0.x-fixes ac0b9cbb2 -> 5273a113b Fixing build Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/5273a113 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/5273a113 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/5273a113 Branch: refs/heads/3.0.x-fixes Commit: 5273a113ba615775c4710ac9e00b037213d10aa7 Parents: ac0b9cb Author: Colm O hEigeartaigh Authored: Thu Apr 21 14:46:19 2016 +0100 Committer: Colm O hEigeartaigh Committed: Thu Apr 21 14:46:19 2016 +0100 ---------------------------------------------------------------------- .../cxf/systest/https/clientauth/ClientAuthTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/5273a113/systests/transports/src/test/java/org/apache/cxf/systest/https/clientauth/ClientAuthTest.java ---------------------------------------------------------------------- diff --git a/systests/transports/src/test/java/org/apache/cxf/systest/https/clientauth/ClientAuthTest.java b/systests/transports/src/test/java/org/apache/cxf/systest/https/clientauth/ClientAuthTest.java index 6afe893..643be9d 100644 --- a/systests/transports/src/test/java/org/apache/cxf/systest/https/clientauth/ClientAuthTest.java +++ b/systests/transports/src/test/java/org/apache/cxf/systest/https/clientauth/ClientAuthTest.java @@ -264,18 +264,18 @@ public class ClientAuthTest extends AbstractBusClientServerTestBase { URL trustStore = ClientAuthTest.class.getResource("../../../../../../keys/Truststore.jks"); KeyStore ts = KeyStore.getInstance("JKS"); - try (FileInputStream trustStoreInputStream = new FileInputStream(trustStore.getPath())) { - ts.load(trustStoreInputStream, "password".toCharArray()); - } + FileInputStream trustStoreInputStream = new FileInputStream(trustStore.getPath()); + ts.load(trustStoreInputStream, "password".toCharArray()); + trustStoreInputStream.close(); TrustManagerFactory tmf = TrustManagerFactory.getInstance("PKIX"); tmf.init(ts); URL keyStore = ClientAuthTest.class.getResource("../../../../../../keys/Morpit.jks"); KeyStore ks = KeyStore.getInstance("JKS"); - try (FileInputStream keyStoreInputStream = new FileInputStream(keyStore.getPath())) { - ks.load(keyStoreInputStream, "password".toCharArray()); - } + FileInputStream keyStoreInputStream = new FileInputStream(keyStore.getPath()); + ks.load(keyStoreInputStream, "password".toCharArray()); + keyStoreInputStream.close(); KeyManagerFactory kmf = KeyManagerFactory.getInstance("PKIX"); kmf.init(ks, "password".toCharArray());