Browse Source

updating for loops in object hash code calculation.

master
Charles Reid 8 years ago
parent
commit
b544aca748
  1. 3
      hash/ObjectHashCode.java

3
hash/ObjectHashCode.java

@ -37,8 +37,9 @@ public class ObjectHashCode { @@ -37,8 +37,9 @@ public class ObjectHashCode {
for(String st : strings) {
stringHashes.add( st.hashCode() );
uniqStringHashes.add( st.hashCode() );
}
Word w = new Word(st);
for(Word w : words) {
wordHashes.add( w.hashCode() );
uniqWordHashes.add( w.hashCode() );
}

Loading…
Cancel
Save