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

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

Issue 1657413002: Fix type of JavaException.cause. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698