HBASE-15065 Addendum fixes checkstyle warnings

This commit is contained in:
tedyu 2016-01-08 14:51:17 -08:00
parent 27c578d685
commit d277c15330
1 changed files with 6 additions and 3 deletions

View File

@ -29,7 +29,6 @@ import org.apache.hadoop.hbase.classification.InterfaceAudience;
import org.apache.hadoop.hbase.master.MasterServices;
import org.apache.hadoop.hbase.normalizer.NormalizationPlan;
import org.apache.hadoop.hbase.normalizer.NormalizationPlan.PlanType;
import org.apache.hadoop.hbase.util.Triple;
import java.util.ArrayList;
import java.util.Collections;
@ -76,8 +75,12 @@ public class SimpleRegionNormalizer implements RegionNormalizer {
new Comparator<NormalizationPlan>() {
@Override
public int compare(NormalizationPlan plan, NormalizationPlan plan2) {
if (plan instanceof SplitNormalizationPlan) return -1;
if (plan2 instanceof SplitNormalizationPlan) return 1;
if (plan instanceof SplitNormalizationPlan) {
return -1;
}
if (plan2 instanceof SplitNormalizationPlan) {
return 1;
}
return 0;
}
};