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:uri"; | 4 import "dart:uri"; |
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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 } | 424 } |
425 } else if (sb.length > newLength) { | 425 } else if (sb.length > newLength) { |
426 var s = sb.toString().substring(0, newLength); | 426 var s = sb.toString().substring(0, newLength); |
427 sb = new StringBuffer(s); | 427 sb = new StringBuffer(s); |
428 } | 428 } |
429 } | 429 } |
430 void clear() { | 430 void clear() { |
431 sb = new StringBuffer(); | 431 sb = new StringBuffer(); |
432 } | 432 } |
433 } | 433 } |
OLD | NEW |