You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2017/07/28 16:50:52 UTC
cxf git commit: Fix compile failure
Repository: cxf
Updated Branches:
refs/heads/3.0.x-fixes 85e82f6f7 -> 29bc6508b
Fix compile failure
Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/29bc6508
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/29bc6508
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/29bc6508
Branch: refs/heads/3.0.x-fixes
Commit: 29bc6508b2126d032a6f4cef89d9593350c28697
Parents: 85e82f6
Author: Daniel Kulp <dk...@apache.org>
Authored: Fri Jul 28 12:50:41 2017 -0400
Committer: Daniel Kulp <dk...@apache.org>
Committed: Fri Jul 28 12:50:41 2017 -0400
----------------------------------------------------------------------
.../apache/cxf/transport/http/URLConnectionHTTPConduit.java | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cxf/blob/29bc6508/rt/transports/http/src/main/java/org/apache/cxf/transport/http/URLConnectionHTTPConduit.java
----------------------------------------------------------------------
diff --git a/rt/transports/http/src/main/java/org/apache/cxf/transport/http/URLConnectionHTTPConduit.java b/rt/transports/http/src/main/java/org/apache/cxf/transport/http/URLConnectionHTTPConduit.java
index 457257f..a79f3a0 100644
--- a/rt/transports/http/src/main/java/org/apache/cxf/transport/http/URLConnectionHTTPConduit.java
+++ b/rt/transports/http/src/main/java/org/apache/cxf/transport/http/URLConnectionHTTPConduit.java
@@ -30,6 +30,9 @@ import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLConnection;
+import java.security.AccessController;
+import java.security.PrivilegedActionException;
+import java.security.PrivilegedExceptionAction;
import java.util.logging.Level;
import javax.net.ssl.HttpsURLConnection;
@@ -352,11 +355,11 @@ public class URLConnectionHTTPConduit extends HTTPConduit {
protected int getResponseCode() throws IOException {
try {
return AccessController.doPrivileged(new PrivilegedExceptionAction<Integer>() {
-
@Override
public Integer run() throws IOException {
return connection.getResponseCode();
- } });
+ }
+ });
} catch (PrivilegedActionException e) {
Throwable t = e.getCause();
if (t instanceof IOException) {