Fix CollationKey creation - fixes #753

This commit is contained in:
Tom Morris 2013-07-10 15:12:49 -04:00
parent 163546de94
commit 32773122c4

View File

@ -71,8 +71,8 @@ public class StringCriterion extends Criterion {
return new KeyMaker() { return new KeyMaker() {
@Override @Override
protected Object makeKey(Object value) { protected Object makeKey(Object value) {
return (ExpressionUtils.isNonBlankData(value) && !(value instanceof String)) ? return collator.getCollationKey((ExpressionUtils.isNonBlankData(value)
collator.getCollationKey(value.toString()) : value; && !(value instanceof String)) ? value.toString() : (String) value);
} }
@Override @Override