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

Unified Diff: lib/core/hashable.dart

Issue 10993059: Stop using the Hashable interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Another space removed. Created 8 years, 3 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 | « lib/core/duration.dart ('k') | lib/core/map.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/core/hashable.dart
diff --git a/lib/core/hashable.dart b/lib/core/hashable.dart
index 62983a2ada660195ae324c59d42812a774d7cc3d..f9f35ff6fbe7fe4363d9c862238acafde51fadc6 100644
--- a/lib/core/hashable.dart
+++ b/lib/core/hashable.dart
@@ -4,6 +4,14 @@
// Dart core library.
+/**
+ * Temporary interface for backwards compatibility.
+ *
+ * All objects now have a [hashCode] method. This interface will be removed
+ * after a grace period. Code that use the [:Hashable:] interface should
+ * remove it, or use [:Object:] instead if a type is necessary.
+ */
abstract class Hashable {
+ // TODO(lrn): http://darbug.com/5522
abstract int hashCode();
}
« no previous file with comments | « lib/core/duration.dart ('k') | lib/core/map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698