--- a/jdk/make/tools/src/build/tools/generatebreakiteratordata/CharSet.java Fri May 31 10:53:19 2013 +0200
+++ b/jdk/make/tools/src/build/tools/generatebreakiteratordata/CharSet.java Wed Jun 05 13:57:16 2013 +0100
@@ -39,6 +39,7 @@
package build.tools.generatebreakiteratordata;
+import java.util.Arrays;
import java.util.Hashtable;
/**
@@ -701,7 +702,14 @@
* the exact same characters as this one
*/
public boolean equals(Object that) {
- return (that instanceof CharSet) && chars.equals(((CharSet)that).chars);
+ return (that instanceof CharSet) && Arrays.equals(chars, ((CharSet)that).chars);
+ }
+
+ /**
+ * Returns the hash code for this set of characters
+ */
+ public int hashCode() {
+ return Arrays.hashCode(chars);
}
/**