| 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"; | |
| 5 import "dart:collection" show ListBase; | 4 import "dart:collection" show ListBase; |
| 6 | 5 |
| 7 class JavaSystem { | 6 class JavaSystem { |
| 8 static int currentTimeMillis() { | 7 static int currentTimeMillis() { |
| 9 return (new DateTime.now()).millisecondsSinceEpoch; | 8 return (new DateTime.now()).millisecondsSinceEpoch; |
| 10 } | 9 } |
| 11 | 10 |
| 12 static void arraycopy(List src, int srcPos, List dest, int destPos, int length
) { | 11 static void arraycopy(List src, int srcPos, List dest, int destPos, int length
) { |
| 13 for (int i = 0; i < length; i++) { | 12 for (int i = 0; i < length; i++) { |
| 14 dest[destPos + i] = src[srcPos + i]; | 13 dest[destPos + i] = src[srcPos + i]; |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 } | 478 } |
| 480 } else if (sb.length > newLength) { | 479 } else if (sb.length > newLength) { |
| 481 var s = sb.toString().substring(0, newLength); | 480 var s = sb.toString().substring(0, newLength); |
| 482 sb = new StringBuffer(s); | 481 sb = new StringBuffer(s); |
| 483 } | 482 } |
| 484 } | 483 } |
| 485 void clear() { | 484 void clear() { |
| 486 sb = new StringBuffer(); | 485 sb = new StringBuffer(); |
| 487 } | 486 } |
| 488 } | 487 } |
| OLD | NEW |