From a5ee36d937e9b1ca551d0733f7b74d19b9bc07b8 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Fri, 16 Dec 2016 21:37:54 -0800 Subject: [PATCH] HBASE-17326 Fix findbugs warning in BufferedMutatorParams Fix above and the other hbase-server findbugs complaint about null-check Addendum to fix complaint out of BMParams#clone. Added CN_IDIOM_NO_SUPER_CALL handling. --- .../org/apache/hadoop/hbase/client/BufferedMutatorParams.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/BufferedMutatorParams.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/BufferedMutatorParams.java index bdb33c3e198..17c69ec87d7 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/BufferedMutatorParams.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/BufferedMutatorParams.java @@ -132,6 +132,8 @@ public class BufferedMutatorParams implements Cloneable { * * @see java.lang.Object#clone() */ + @edu.umd.cs.findbugs.annotations.SuppressWarnings(value="CN_IDIOM_NO_SUPER_CALL", + justification="The clone below is complete") public BufferedMutatorParams clone() { BufferedMutatorParams clone = new BufferedMutatorParams(this.tableName); clone.writeBufferSize = this.writeBufferSize;