| 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 import "dart:collection" show ListBase; | 4 import "dart:collection" show ListBase; |
| 5 | 5 |
| 6 class JavaSystem { | 6 class JavaSystem { |
| 7 static int currentTimeMillis() { | 7 static int currentTimeMillis() { |
| 8 return (new DateTime.now()).millisecondsSinceEpoch; | 8 return (new DateTime.now()).millisecondsSinceEpoch; |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 if (uri.path.isEmpty) { | 286 if (uri.path.isEmpty) { |
| 287 throw new URISyntaxException(); | 287 throw new URISyntaxException(); |
| 288 } | 288 } |
| 289 return uri; | 289 return uri; |
| 290 } | 290 } |
| 291 | 291 |
| 292 class URISyntaxException implements Exception { | 292 class URISyntaxException implements Exception { |
| 293 String toString() => "URISyntaxException"; | 293 String toString() => "URISyntaxException"; |
| 294 } | 294 } |
| 295 | 295 |
| 296 class IOException implements Exception { | |
| 297 String toString() => "IOException"; | |
| 298 } | |
| 299 | |
| 300 class MissingFormatArgumentException implements Exception { | 296 class MissingFormatArgumentException implements Exception { |
| 301 final String s; | 297 final String s; |
| 302 | 298 |
| 303 String toString() => "MissingFormatArgumentException: $s"; | 299 String toString() => "MissingFormatArgumentException: $s"; |
| 304 | 300 |
| 305 MissingFormatArgumentException(this.s); | 301 MissingFormatArgumentException(this.s); |
| 306 } | 302 } |
| 307 | 303 |
| 308 class ListWrapper<E> extends ListBase<E> implements List<E> { | 304 class ListWrapper<E> extends ListBase<E> implements List<E> { |
| 309 List<E> elements = new List<E>(); | 305 List<E> elements = new List<E>(); |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 } | 504 } |
| 509 } else if (sb.length > newLength) { | 505 } else if (sb.length > newLength) { |
| 510 var s = sb.toString().substring(0, newLength); | 506 var s = sb.toString().substring(0, newLength); |
| 511 sb = new StringBuffer(s); | 507 sb = new StringBuffer(s); |
| 512 } | 508 } |
| 513 } | 509 } |
| 514 void clear() { | 510 void clear() { |
| 515 sb = new StringBuffer(); | 511 sb = new StringBuffer(); |
| 516 } | 512 } |
| 517 } | 513 } |
| OLD | NEW |