HBASE-21997 Fix hbase-rest findbugs ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD complaint

This commit is contained in:
stack 2019-03-05 09:44:32 -08:00
parent 40059f5c3a
commit 4a78deb616
1 changed files with 3 additions and 0 deletions

View File

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