| OLD | NEW |
| 1 library java.core; | 1 library java.core; |
| 2 | 2 |
| 3 import "dart:math" as math; | 3 import "dart:math" as math; |
| 4 | 4 |
| 5 final Stopwatch nanoTimeStopwatch = new Stopwatch(); | 5 final Stopwatch nanoTimeStopwatch = new Stopwatch(); |
| 6 | 6 |
| 7 class JavaSystem { | 7 class JavaSystem { |
| 8 static int currentTimeMillis() { | 8 static int currentTimeMillis() { |
| 9 return (new DateTime.now()).millisecondsSinceEpoch; | 9 return (new DateTime.now()).millisecondsSinceEpoch; |
| 10 } | 10 } |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 } | 253 } |
| 254 | 254 |
| 255 class IllegalStateException extends JavaException { | 255 class IllegalStateException extends JavaException { |
| 256 IllegalStateException([message = ""]) : super(message); | 256 IllegalStateException([message = ""]) : super(message); |
| 257 } | 257 } |
| 258 | 258 |
| 259 class UnsupportedOperationException extends JavaException { | 259 class UnsupportedOperationException extends JavaException { |
| 260 String toString() => "UnsupportedOperationException"; | 260 String toString() => "UnsupportedOperationException"; |
| 261 } | 261 } |
| 262 | 262 |
| 263 class NoSuchElementException extends JavaException { |
| 264 String toString() => "NoSuchElementException"; |
| 265 } |
| 266 |
| 263 class NumberFormatException extends JavaException { | 267 class NumberFormatException extends JavaException { |
| 264 String toString() => "NumberFormatException"; | 268 String toString() => "NumberFormatException"; |
| 265 } | 269 } |
| 266 | 270 |
| 267 /// Parses given string to [Uri], throws [URISyntaxException] if invalid. | 271 /// Parses given string to [Uri], throws [URISyntaxException] if invalid. |
| 268 Uri parseUriWithException(String str) { | 272 Uri parseUriWithException(String str) { |
| 269 Uri uri = Uri.parse(str); | 273 Uri uri = Uri.parse(str); |
| 270 if (uri.path.isEmpty) { | 274 if (uri.path.isEmpty) { |
| 271 throw new URISyntaxException(); | 275 throw new URISyntaxException(); |
| 272 } | 276 } |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 if (!_matches.moveNext()) { | 437 if (!_matches.moveNext()) { |
| 434 return false; | 438 return false; |
| 435 } | 439 } |
| 436 _match = _matches.current; | 440 _match = _matches.current; |
| 437 return true; | 441 return true; |
| 438 } | 442 } |
| 439 String group(int i) => _match[i]; | 443 String group(int i) => _match[i]; |
| 440 int start() => _match.start; | 444 int start() => _match.start; |
| 441 int end() => _match.end; | 445 int end() => _match.end; |
| 442 } | 446 } |
| OLD | NEW |