Skip to content

Commit

Permalink
Bug fix in shrinkRec.
Browse files Browse the repository at this point in the history
  • Loading branch information
antononcube committed Jan 29, 2017
1 parent 9b52df5 commit 5b1ccfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Java/TriesWithFrequencies/src/TrieFunctions.java
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ protected static Trie shrinkRec(Trie tr, String delimiter, double threshold, int
boolean shrinkQ = false;

if (threshold < 0) {
shrinkQ = tr.getValue() == arr.get(0).getValue();
shrinkQ = tr.getValue().equals( arr.get(0).getValue() );
} else {
shrinkQ = arr.get(0).getValue() >= threshold;
}
Expand Down

0 comments on commit 5b1ccfa

Please sign in to comment.