| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library analyzer.src.generated.java_core; | 5 library analyzer.src.generated.java_core; |
| 6 | 6 |
| 7 const int LONG_MAX_VALUE = 0x7fffffffffffffff; | 7 const int LONG_MAX_VALUE = 0x7fffffffffffffff; |
| 8 | 8 |
| 9 final Stopwatch nanoTimeStopwatch = new Stopwatch(); | 9 final Stopwatch nanoTimeStopwatch = new Stopwatch(); |
| 10 | 10 |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 int result = 1; | 243 int result = 1; |
| 244 for (var element in a) { | 244 for (var element in a) { |
| 245 result = 31 * result + (element == null ? 0 : element.hashCode); | 245 result = 31 * result + (element == null ? 0 : element.hashCode); |
| 246 } | 246 } |
| 247 return result; | 247 return result; |
| 248 } | 248 } |
| 249 } | 249 } |
| 250 | 250 |
| 251 class JavaException implements Exception { | 251 class JavaException implements Exception { |
| 252 final String message; | 252 final String message; |
| 253 final Exception cause; | 253 final Object cause; |
| 254 JavaException([this.message = "", this.cause = null]); | 254 JavaException([this.message = "", this.cause = null]); |
| 255 JavaException.withCause(this.cause) : message = null; | 255 JavaException.withCause(this.cause) : message = null; |
| 256 String toString() => "$runtimeType: $message $cause"; | 256 String toString() => "$runtimeType: $message $cause"; |
| 257 } | 257 } |
| 258 | 258 |
| 259 class JavaIOException extends JavaException { | 259 class JavaIOException extends JavaException { |
| 260 JavaIOException([message = "", cause = null]) : super(message, cause); | 260 JavaIOException([message = "", cause = null]) : super(message, cause); |
| 261 } | 261 } |
| 262 | 262 |
| 263 class JavaPatternMatcher { | 263 class JavaPatternMatcher { |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 | 441 |
| 442 class UnsupportedOperationException extends JavaException { | 442 class UnsupportedOperationException extends JavaException { |
| 443 UnsupportedOperationException([message = ""]) : super(message); | 443 UnsupportedOperationException([message = ""]) : super(message); |
| 444 } | 444 } |
| 445 | 445 |
| 446 class URISyntaxException implements Exception { | 446 class URISyntaxException implements Exception { |
| 447 final String message; | 447 final String message; |
| 448 URISyntaxException(this.message); | 448 URISyntaxException(this.message); |
| 449 String toString() => "URISyntaxException: $message"; | 449 String toString() => "URISyntaxException: $message"; |
| 450 } | 450 } |
| OLD | NEW |