cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1073832 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java
Date Wed, 23 Feb 2011 17:15:05 GMT
Author: dkulp
Date: Wed Feb 23 17:15:04 2011
New Revision: 1073832

URL: http://svn.apache.org/viewvc?rev=1073832&view=rev
Log:
Catch all exceptions and use the default NS if cannot be mapped.

Modified:
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java?rev=1073832&r1=1073831&r2=1073832&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java Wed Feb
23 17:15:04 2011
@@ -25,7 +25,6 @@ import java.io.InputStream;
 import java.io.UnsupportedEncodingException;
 import java.net.MalformedURLException;
 import java.net.URI;
-import java.net.URISyntaxException;
 import java.net.URL;
 import java.net.URLDecoder;
 import java.net.URLEncoder;
@@ -88,9 +87,7 @@ public final class AttachmentUtil {
                 URI uri = new URI(ns);
                 String host = uri.toURL().getHost();
                 cid = host;
-            } catch (URISyntaxException e) {
-                cid = ns;
-            } catch (MalformedURLException e) {
+            } catch (Exception e) {
                 cid = ns;
             }
         }



Mime
View raw message