HBASE-19160 expose CellComparator as IA.Public - addendum fixes compilation for branch-2

This commit is contained in:
tedyu 2017-11-06 11:32:26 -08:00
parent cfddfcf23c
commit 50f30668b8
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ public class Import extends Configured implements Tool {
@edu.umd.cs.findbugs.annotations.SuppressWarnings(value = "EQ_COMPARETO_USE_OBJECT_EQUALS",
justification = "This is wrong, yes, but we should be purging Writables, not fixing them")
public int compareTo(KeyValueWritableComparable o) {
return CellComparatorImpl.COMPARATOR.compare(this.kv, ((KeyValueWritableComparable) o).kv);
return CellComparator.getInstance().compare(this.kv, o.kv);
}
public static class KeyValueWritableComparator extends WritableComparator {