From 4a78deb616dbf19f376681508cc359546124e06a Mon Sep 17 00:00:00 2001 From: stack Date: Tue, 5 Mar 2019 09:44:32 -0800 Subject: [PATCH] HBASE-21997 Fix hbase-rest findbugs ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD complaint --- .../src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java index 34ec96f8048..95e401a88db 100644 --- a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java +++ b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java @@ -103,6 +103,9 @@ public class RESTServer implements Constants { "hbase.rest-csrf.browser-useragents-regex"; // HACK, making this static for AuthFilter to get at our configuration. Necessary for unit tests. + @edu.umd.cs.findbugs.annotations.SuppressWarnings( + value={"ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD", "MS_CANNOT_BE_FINAL"}, + justification="For testing") public static Configuration conf = null; private final UserProvider userProvider; private Server server;