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 <[email protected]> Authored: Thu Apr 21 14:46:19 2016 +0100 Committer: Colm O hEigeartaigh <[email protected]> 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());
