Commit 97156dbf authored by Rob Tomsick's avatar Rob Tomsick

Fix incorrect de-dup of hash permutations (Stream#distinct() is useless for arrays)

parent dbe7bcd0
......@@ -428,8 +428,8 @@ implements DictionaryService
hashFuzz(final String input, final int distance, final int minHashLen)
{
return hashPermute(PhoneticHash.hash(input).toCharArray(), distance, minHashLen)
.distinct()
.map(String :: valueOf);
.map(String :: valueOf)
.distinct();
}
private static final Stream<char[]>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment