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

Side by Side Diff: editor/util/plugins/com.google.dart.java2dart/resources/java_engine.dart

Issue 15675016: More fixes for java2dart and status files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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.engine; 1 library java.engine;
2 2
3 class StringUtilities { 3 class StringUtilities {
4 static List<String> EMPTY_ARRAY = new List(0); 4 static const String EMPTY = '';
5 static const List<String> EMPTY_ARRAY = const <String> [];
5 static String intern(String s) => s; 6 static String intern(String s) => s;
6 static String substringBefore(String str, String separator) { 7 static String substringBefore(String str, String separator) {
7 if (str == null || str.isEmpty) { 8 if (str == null || str.isEmpty) {
8 return str; 9 return str;
9 } 10 }
10 int pos = str.indexOf(separator); 11 int pos = str.indexOf(separator);
11 if (pos < 0) { 12 if (pos < 0) {
12 return str; 13 return str;
13 } 14 }
14 return str.substring(0, pos); 15 return str.substring(0, pos);
(...skipping 21 matching lines...) Expand all
36 } 37 }
37 } 38 }
38 39
39 class UUID { 40 class UUID {
40 static int __nextId = 0; 41 static int __nextId = 0;
41 final String id; 42 final String id;
42 UUID(this.id); 43 UUID(this.id);
43 String toString() => id; 44 String toString() => id;
44 static UUID randomUUID() => new UUID((__nextId).toString()); 45 static UUID randomUUID() => new UUID((__nextId).toString());
45 } 46 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698