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 8227D101AB for ; Thu, 19 Feb 2015 16:00:39 +0000 (UTC) Received: (qmail 13151 invoked by uid 500); 19 Feb 2015 16:00:39 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 13085 invoked by uid 500); 19 Feb 2015 16:00:39 -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 12927 invoked by uid 99); 19 Feb 2015 16:00:39 -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, 19 Feb 2015 16:00:39 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id ECCD3E042E; Thu, 19 Feb 2015 16:00:38 +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 Date: Thu, 19 Feb 2015 16:00:40 -0000 Message-Id: <00d77116390640d2870f083714e24f25@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [3/3] cxf git commit: Fixing build for JDK6 Fixing build for JDK6 Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/030c22d8 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/030c22d8 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/030c22d8 Branch: refs/heads/3.0.x-fixes Commit: 030c22d80f0824109eabcdab03d4145a6187246f Parents: d88d03c Author: Colm O hEigeartaigh Authored: Thu Feb 19 16:00:28 2015 +0000 Committer: Colm O hEigeartaigh Committed: Thu Feb 19 16:00:28 2015 +0000 ---------------------------------------------------------------------- .../cxf/ws/security/wss4j/AbstractWSS4JInterceptor.java | 2 +- .../ws/security/wss4j/AbstractWSS4JStaxInterceptor.java | 2 +- .../org/apache/cxf/ws/security/wss4j/WSS4JUtils.java | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/030c22d8/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/AbstractWSS4JInterceptor.java ---------------------------------------------------------------------- diff --git a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/AbstractWSS4JInterceptor.java b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/AbstractWSS4JInterceptor.java index e50f6ee..b7b05a6 100644 --- a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/AbstractWSS4JInterceptor.java +++ b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/AbstractWSS4JInterceptor.java @@ -206,7 +206,7 @@ public abstract class AbstractWSS4JInterceptor extends WSHandler implements Soap return WSS4JUtils.loadCryptoFromPropertiesFile( message, propFilename, this.getClass(), classLoader, passwordEncryptor - ); + ); } } http://git-wip-us.apache.org/repos/asf/cxf/blob/030c22d8/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/AbstractWSS4JStaxInterceptor.java ---------------------------------------------------------------------- diff --git a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/AbstractWSS4JStaxInterceptor.java b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/AbstractWSS4JStaxInterceptor.java index 07954f5..583de26 100644 --- a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/AbstractWSS4JStaxInterceptor.java +++ b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/AbstractWSS4JStaxInterceptor.java @@ -388,7 +388,7 @@ public abstract class AbstractWSS4JStaxInterceptor implements SoapInterceptor, return WSS4JUtils.loadCryptoFromPropertiesFile( soapMessage, propFilename, this.getClass(), getClassLoader(), passwordEncryptor - ); + ); } protected PasswordEncryptor getPasswordEncryptor( http://git-wip-us.apache.org/repos/asf/cxf/blob/030c22d8/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JUtils.java ---------------------------------------------------------------------- diff --git a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JUtils.java b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JUtils.java index 0e891e6..d872a47 100644 --- a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JUtils.java +++ b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/WSS4JUtils.java @@ -282,9 +282,9 @@ public final class WSS4JUtils { } else if (propsURL != null) { try { properties = new Properties(); - try (InputStream ins = propsURL.openStream()) { - properties.load(ins); - } + InputStream ins = propsURL.openStream(); + properties.load(ins); + ins.close(); } catch (IOException e) { properties = null; } @@ -339,9 +339,9 @@ public final class WSS4JUtils { URL url = getPropertiesFileURL(propFilename, manager, callingClass); if (url != null) { Properties props = new Properties(); - try (InputStream in = url.openStream()) { - props.load(in); - } + InputStream in = url.openStream(); + props.load(in); + in.close(); return CryptoFactory.getInstance(props, classLoader, passwordEncryptor); } } catch (Exception e) {