| 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 import "dart:collection" show ListBase; | 5 import "dart:collection" show ListBase; |
| 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 24 matching lines...) Expand all Loading... |
| 35 if (oTypeName.startsWith("HashMap") && tTypeName == "Map") { | 35 if (oTypeName.startsWith("HashMap") && tTypeName == "Map") { |
| 36 return true; | 36 return true; |
| 37 } | 37 } |
| 38 if (oTypeName.startsWith("List") && tTypeName == "List") { | 38 if (oTypeName.startsWith("List") && tTypeName == "List") { |
| 39 return true; | 39 return true; |
| 40 } | 40 } |
| 41 // Dart Analysis Engine specific | 41 // Dart Analysis Engine specific |
| 42 if (oTypeName == "${tTypeName}Impl") { | 42 if (oTypeName == "${tTypeName}Impl") { |
| 43 return true; | 43 return true; |
| 44 } | 44 } |
| 45 if (tTypeName == "MethodElement") { |
| 46 if (oTypeName == "MethodMember") { |
| 47 return true; |
| 48 } |
| 49 } |
| 45 if (tTypeName == "ExecutableElement") { | 50 if (tTypeName == "ExecutableElement") { |
| 46 if (oTypeName == "MethodElementImpl" || oTypeName == "FunctionElementImpl")
{ | 51 if (oTypeName == "MethodElementImpl" || oTypeName == "FunctionElementImpl")
{ |
| 47 return true; | 52 return true; |
| 48 } | 53 } |
| 49 } | 54 } |
| 50 // no | 55 // no |
| 51 return false; | 56 return false; |
| 52 } | 57 } |
| 53 | 58 |
| 54 class JavaArrays { | 59 class JavaArrays { |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 } | 457 } |
| 453 } else if (sb.length > newLength) { | 458 } else if (sb.length > newLength) { |
| 454 var s = sb.toString().substring(0, newLength); | 459 var s = sb.toString().substring(0, newLength); |
| 455 sb = new StringBuffer(s); | 460 sb = new StringBuffer(s); |
| 456 } | 461 } |
| 457 } | 462 } |
| 458 void clear() { | 463 void clear() { |
| 459 sb = new StringBuffer(); | 464 sb = new StringBuffer(); |
| 460 } | 465 } |
| 461 } | 466 } |
| OLD | NEW |