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.
This commit is contained in:
Michael Stack 2016-12-16 21:37:54 -08:00
parent 2c107e4d08
commit a5ee36d937
1 changed files with 2 additions and 0 deletions

View File

@ -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;