You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2019/03/05 20:15:59 UTC

[hbase] branch branch-2 updated: HBASE-21997 Fix hbase-rest findbugs ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD complaint

This is an automated email from the ASF dual-hosted git repository.

stack pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2 by this push:
     new 5ee9a21  HBASE-21997 Fix hbase-rest findbugs ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD complaint
5ee9a21 is described below

commit 5ee9a2170cd2eddf4292cfcb8664b1823c09e9b6
Author: stack <st...@apache.org>
AuthorDate: Tue Mar 5 09:44:32 2019 -0800

    HBASE-21997 Fix hbase-rest findbugs ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD complaint
---
 hbase-rest/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 8a09647..a73f280 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;