src/share/jaxws_classes/com/sun/xml/internal/ws/api/EndpointAddress.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -23,11 +23,10 @@
* questions.
*/
package com.sun.xml.internal.ws.api;
-
import com.sun.istack.internal.Nullable;
import javax.xml.ws.WebServiceException;
import java.io.IOException;
import java.net.MalformedURLException;
@@ -153,10 +152,11 @@
private Proxy chooseProxy() {
ProxySelector sel =
java.security.AccessController.doPrivileged(
new java.security.PrivilegedAction<ProxySelector>() {
+ @Override
public ProxySelector run() {
return ProxySelector.getDefault();
}
});
@@ -207,11 +207,10 @@
* @throws AssertionError
* if this endpoint doesn't have an associated URL.
* if the code is written correctly this shall never happen.
*/
public URLConnection openConnection() throws IOException {
- assert url!=null : uri+" doesn't have the corresponding URL";
if (url == null) {
throw new WebServiceException("URI="+uri+" doesn't have the corresponding URL");
}
if(proxy!=null && !dontUseProxyMethod) {
try {
@@ -224,9 +223,10 @@
}
}
return url.openConnection();
}
+ @Override
public String toString() {
return stringForm;
}
}