Author: [email protected]
Date: Tue Apr 28 07:26:23 2009
New Revision: 5289
Modified:
trunk/user/src/com/google/gwt/xml/client/impl/DOMItem.java
Log:
Implement hashCode() to match equals(), fixing a checkstyle violation.
Review by: jgw
Modified: trunk/user/src/com/google/gwt/xml/client/impl/DOMItem.java
==============================================================================
--- trunk/user/src/com/google/gwt/xml/client/impl/DOMItem.java (original)
+++ trunk/user/src/com/google/gwt/xml/client/impl/DOMItem.java Tue Apr 28
07:26:23 2009
@@ -42,6 +42,13 @@
}
return false;
}
+
+ /**
+ * Returns the hash code for this DOMItem.
+ */
+ public int hashCode() {
+ return jsObject.hashCode();
+ }
JavaScriptObject getJsObject() {
return jsObject;
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---