mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
acquire class lock before running static initializer; wrap exceptions thrown from static initializers in ExceptionInInitializerError instances
This commit is contained in:
@ -1,9 +1,19 @@
|
||||
package java.net;
|
||||
|
||||
public class URL {
|
||||
private final String value;
|
||||
public final class URL {
|
||||
// private final String protocol;
|
||||
// private final String host;
|
||||
// private final int port;
|
||||
// private final String file;
|
||||
|
||||
public URL(String s) throws MalformedURLException {
|
||||
value = s;
|
||||
// int colon = s.indexOf(':');
|
||||
// int slash = s.indexOf('/');
|
||||
// if (colon > 0 && (slash < 0 || colon < slash)) {
|
||||
// protocol = s.substring(0, colon);
|
||||
// // todo
|
||||
// } else {
|
||||
// throw new MalformedURLException(s);
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user