mirror of
https://github.com/corda/corda.git
synced 2025-06-12 20:28:18 +00:00
Merge remote branch 'oss/master' into jdk7
This commit is contained in:
@ -81,7 +81,9 @@ public final class URL {
|
||||
private static URLStreamHandler findHandler(String protocol)
|
||||
throws MalformedURLException
|
||||
{
|
||||
if ("resource".equals(protocol)) {
|
||||
if ("http".equals(protocol) || "https".equals(protocol)) {
|
||||
return new avian.http.Handler();
|
||||
} else if ("resource".equals(protocol)) {
|
||||
return new avian.resource.Handler();
|
||||
} else if ("file".equals(protocol)) {
|
||||
return new avian.file.Handler();
|
||||
|
@ -38,7 +38,7 @@ public abstract class URLStreamHandler {
|
||||
host = s.substring(0, slash);
|
||||
} else {
|
||||
host = s.substring(0, colon);
|
||||
port = Integer.parseInt(s.substring(colon + 1), slash);
|
||||
port = Integer.parseInt(s.substring(colon + 1, slash));
|
||||
}
|
||||
s = s.substring(slash);
|
||||
}
|
||||
|
Reference in New Issue
Block a user