Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(806)

Side by Side Diff: pkg/analyzer_experimental/lib/src/generated/java_core.dart

Issue 22859069: Reapply "Make Map constructors return LinkedHashMap." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Make map_values2_test know the order. Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 16 matching lines...) Expand all
27 return true; 27 return true;
28 } 28 }
29 String oTypeName = o.runtimeType.toString(); 29 String oTypeName = o.runtimeType.toString();
30 String tTypeName = t.toString(); 30 String tTypeName = t.toString();
31 if (oTypeName == tTypeName) { 31 if (oTypeName == tTypeName) {
32 return true; 32 return true;
33 } 33 }
34 if (oTypeName.startsWith("HashMap") && tTypeName == "Map") { 34 if (oTypeName.startsWith("HashMap") && tTypeName == "Map") {
35 return true; 35 return true;
36 } 36 }
37 if (oTypeName.startsWith("LinkedHashMap") && tTypeName == "Map") {
38 return true;
39 }
37 if (oTypeName.startsWith("List") && tTypeName == "List") { 40 if (oTypeName.startsWith("List") && tTypeName == "List") {
38 return true; 41 return true;
39 } 42 }
40 // Dart Analysis Engine specific 43 // Dart Analysis Engine specific
41 if (oTypeName == "${tTypeName}Impl") { 44 if (oTypeName == "${tTypeName}Impl") {
42 return true; 45 return true;
43 } 46 }
44 if (tTypeName == "MethodElement") { 47 if (tTypeName == "MethodElement") {
45 if (oTypeName == "MethodMember") { 48 if (oTypeName == "MethodMember") {
46 return true; 49 return true;
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 } 532 }
530 void clear() { 533 void clear() {
531 sb = new StringBuffer(); 534 sb = new StringBuffer();
532 } 535 }
533 } 536 }
534 537
535 abstract class Enum<E> implements Comparable<E> { 538 abstract class Enum<E> implements Comparable<E> {
536 int get ordinal; 539 int get ordinal;
537 String get name; 540 String get name;
538 } 541 }
OLDNEW
« no previous file with comments | « editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart ('k') | pkg/csslib/test/var_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698