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

Unified Diff: tools/dom/src/Point.dart

Issue 18034021: Fixing analyzer warnings on overloading == but not get hashCode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | « tests/html/rect_test.dart ('k') | tools/dom/src/Rectangle.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/Point.dart
diff --git a/tools/dom/src/Point.dart b/tools/dom/src/Point.dart
index 958b7312d016e64ed947ede1f5e6848c2a1a1bd0..366cae055aadaabc000d0d117ce0bf58fc89d130 100644
--- a/tools/dom/src/Point.dart
+++ b/tools/dom/src/Point.dart
@@ -20,6 +20,8 @@ class Point {
return x == other.x && y == other.y;
}
+ int get hashCode => JenkinsSmiHash.hash2(x.hashCode, y.hashCode);
+
Point operator +(Point other) {
return new Point(x + other.x, y + other.y);
}
« no previous file with comments | « tests/html/rect_test.dart ('k') | tools/dom/src/Rectangle.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698