Skip to content

Commit 5bd1f4e

Browse files
committed
ZOOKEEPER-3188: supress spotbugs warning
1 parent 42a52a6 commit 5bd1f4e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • zookeeper-server/src/main/java/org/apache/zookeeper/server/admin

zookeeper-server/src/main/java/org/apache/zookeeper/server/admin/Commands.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import java.util.stream.Collectors;
3333

3434
import com.fasterxml.jackson.annotation.JsonProperty;
35+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
3536
import org.apache.zookeeper.Environment;
3637
import org.apache.zookeeper.Environment.Entry;
3738
import org.apache.zookeeper.Version;
@@ -640,6 +641,7 @@ public CommandResponse run(ZooKeeperServer zkServer, Map<String, String> kwargs)
640641
return response;
641642
}
642643

644+
@SuppressFBWarnings(value = "URF_UNREAD_FIELD", justification="class is used only for JSON serialization")
643645
private static class QuorumServerView {
644646

645647
@JsonProperty

0 commit comments

Comments
 (0)