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

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

Issue 1000873002: Deprecate utility method (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 const int LONG_MAX_VALUE = 0x7fffffffffffffff; 3 const int LONG_MAX_VALUE = 0x7fffffffffffffff;
4 4
5 final Stopwatch nanoTimeStopwatch = new Stopwatch(); 5 final Stopwatch nanoTimeStopwatch = new Stopwatch();
6 6
7 /** 7 /**
8 * Inserts the given arguments into [pattern]. 8 * Inserts the given arguments into [pattern].
9 * 9 *
10 * format('Hello, {0}!', 'John') = 'Hello, John!' 10 * format('Hello, {0}!', 'John') = 'Hello, John!'
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 if (fromIndex > target.length) return -1; 272 if (fromIndex > target.length) return -1;
273 if (fromIndex < 0) fromIndex = 0; 273 if (fromIndex < 0) fromIndex = 0;
274 return target.lastIndexOf(str, fromIndex); 274 return target.lastIndexOf(str, fromIndex);
275 } 275 }
276 static bool startsWithBefore(String s, String other, int start) { 276 static bool startsWithBefore(String s, String other, int start) {
277 return s.indexOf(other, start) != -1; 277 return s.indexOf(other, start) != -1;
278 } 278 }
279 } 279 }
280 280
281 class JavaSystem { 281 class JavaSystem {
282 @deprecated
282 static void arraycopy( 283 static void arraycopy(
283 List src, int srcPos, List dest, int destPos, int length) { 284 List src, int srcPos, List dest, int destPos, int length) {
284 for (int i = 0; i < length; i++) { 285 for (int i = 0; i < length; i++) {
285 dest[destPos + i] = src[srcPos + i]; 286 dest[destPos + i] = src[srcPos + i];
286 } 287 }
287 } 288 }
288 289
289 static int currentTimeMillis() { 290 static int currentTimeMillis() {
290 return (new DateTime.now()).millisecondsSinceEpoch; 291 return (new DateTime.now()).millisecondsSinceEpoch;
291 } 292 }
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 429
429 class UnsupportedOperationException extends JavaException { 430 class UnsupportedOperationException extends JavaException {
430 UnsupportedOperationException([message = ""]) : super(message); 431 UnsupportedOperationException([message = ""]) : super(message);
431 } 432 }
432 433
433 class URISyntaxException implements Exception { 434 class URISyntaxException implements Exception {
434 final String message; 435 final String message;
435 URISyntaxException(this.message); 436 URISyntaxException(this.message);
436 String toString() => "URISyntaxException: $message"; 437 String toString() => "URISyntaxException: $message";
437 } 438 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698