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

Unified Diff: editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart

Issue 26096002: New analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
diff --git a/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart b/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
index c136b7a37ff39db21ee6e9b8f0a7a37439346422..56de04ea0d587cf95fb4de866fee0bca38ca1bca 100644
--- a/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
+++ b/editor/util/plugins/com.google.dart.java2dart/resources/java_core.dart
@@ -288,29 +288,23 @@ class JavaIOException extends JavaException {
JavaIOException([message = "", cause = null]) : super(message, cause);
}
-class IllegalArgumentException implements Exception {
- final String message;
- const IllegalArgumentException([this.message = "", Exception e = null]);
- String toString() => "IllegalStateException: $message";
+class IllegalArgumentException extends JavaException {
+ IllegalArgumentException([message = "", cause = null]) : super(message, cause);
}
-class StringIndexOutOfBoundsException implements Exception {
- final int index;
- const StringIndexOutOfBoundsException(this.index);
- String toString() => "StringIndexOutOfBoundsException: $index";
+class StringIndexOutOfBoundsException extends JavaException {
+ StringIndexOutOfBoundsException(int index) : super('$index');
}
-class IllegalStateException implements Exception {
- final String message;
- const IllegalStateException([this.message = ""]);
- String toString() => "IllegalStateException: $message";
+class IllegalStateException extends JavaException {
+ IllegalStateException([message = ""]) : super(message);
}
-class UnsupportedOperationException implements Exception {
+class UnsupportedOperationException extends JavaException {
String toString() => "UnsupportedOperationException";
}
-class NumberFormatException implements Exception {
+class NumberFormatException extends JavaException {
String toString() => "NumberFormatException";
}
@@ -376,10 +370,6 @@ class ListWrapper<E> extends ListBase<E> implements List<E> {
elements.sort(compare);
}
- void shuffle() {
- elements.shuffle();
- }
-
int indexOf(E element, [int start = 0]) {
return elements.indexOf(element, start);
}

Powered by Google App Engine
This is Rietveld 408576698