HBASE-17326 Fix findbugs warning in BufferedMutatorParams Fix above and the other hbase-server findbugs complaint about null-check

This commit is contained in:
Michael Stack 2016-12-16 10:10:14 -08:00
parent e16e2a61c1
commit c3ce02d592
2 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,7 @@ import org.apache.hadoop.hbase.classification.InterfaceStability;
*/ */
@InterfaceAudience.Public @InterfaceAudience.Public
@InterfaceStability.Evolving @InterfaceStability.Evolving
public class BufferedMutatorParams { public class BufferedMutatorParams implements Cloneable {
static final int UNSET = -1; static final int UNSET = -1;

View File

@ -131,6 +131,8 @@ public class CellCounter extends Configured implements Tool {
*/ */
@Override @Override
@edu.umd.cs.findbugs.annotations.SuppressWarnings(value="NP_NULL_ON_SOME_PATH",
justification="Findbugs is blind to the Precondition null check")
public void map(ImmutableBytesWritable row, Result values, public void map(ImmutableBytesWritable row, Result values,
Context context) Context context)
throws IOException { throws IOException {