deprecate newurl(), not used and already replaced

instead of making it handle all supported the protocols
pull/65/head
reger 9 years ago
parent 774b3906a9
commit 9b07bbf955

@ -356,6 +356,10 @@ public class MultiProtocolURL implements Serializable, Comparable<MultiProtocolU
return this.contentDomain;
}
/**
* @deprecated not used (2016-07-20), doesn't handle all protocol cases. Use MultiprotocolURL(MultiProtocolURL, String) instead
*/
@Deprecated // not used 2016-07-20
public static MultiProtocolURL newURL(final String baseURL, String relPath) throws MalformedURLException {
if (relPath.startsWith("//")) {
// patch for urls starting with "//" which can be found in the wild
@ -373,6 +377,10 @@ public class MultiProtocolURL implements Serializable, Comparable<MultiProtocolU
return new MultiProtocolURL(new MultiProtocolURL(baseURL), relPath);
}
/**
* @deprecated not used (2016-07-20), doesn't handle all protocol cases. Use MultiprotocolURL(MultiProtocolURL, String) instead
*/
@Deprecated // not used 2016-07-20
public static MultiProtocolURL newURL(final MultiProtocolURL baseURL, String relPath) throws MalformedURLException {
if (relPath.startsWith("//")) {
// patch for urls starting with "//" which can be found in the wild

Loading…
Cancel
Save