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

Unified Diff: pkg/analyzer/lib/src/generated/java_io.dart

Issue 1749143003: Add @overrides to (a lot of) analyzer. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: options 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/lib/src/generated/sdk.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/java_io.dart
diff --git a/pkg/analyzer/lib/src/generated/java_io.dart b/pkg/analyzer/lib/src/generated/java_io.dart
index dc054d0e6686a5e5807be3636ab8d0f65efb620c..2e0deb192ebd323d57658569f345de5747f6aeb4 100644
--- a/pkg/analyzer/lib/src/generated/java_io.dart
+++ b/pkg/analyzer/lib/src/generated/java_io.dart
@@ -25,7 +25,9 @@ class JavaFile {
this._path = pathContext.join(base._path, child);
}
}
+ @override
int get hashCode => _path.hashCode;
+ @override
bool operator ==(other) {
return other is JavaFile && other._path == _path;
}
@@ -101,6 +103,7 @@ class JavaFile {
}
String readAsStringSync() => _newFile().readAsStringSync();
+ @override
String toString() => _path.toString();
Uri toURI() {
String path = getAbsolutePath();
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/lib/src/generated/sdk.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698