HBASE-10134 Fix findbug warning in VisibilityController

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1550340 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2013-12-12 03:32:04 +00:00
parent 1e0185468c
commit a28881da2d
1 changed files with 1 additions and 1 deletions

View File

@ -956,11 +956,11 @@ public class VisibilityController extends BaseRegionObserver implements MasterOb
private List<String> getSystemAndSuperUsers() throws IOException { private List<String> getSystemAndSuperUsers() throws IOException {
User user = User.getCurrent(); User user = User.getCurrent();
LOG.debug("Current user name is "+user.getShortName());
if (user == null) { if (user == null) {
throw new IOException("Unable to obtain the current user, " throw new IOException("Unable to obtain the current user, "
+ "authorization checks for internal operations will not work correctly!"); + "authorization checks for internal operations will not work correctly!");
} }
LOG.debug("Current user name is "+user.getShortName());
String currentUser = user.getShortName(); String currentUser = user.getShortName();
List<String> superUsers = Lists.asList(currentUser, List<String> superUsers = Lists.asList(currentUser,
this.conf.getStrings(AccessControlLists.SUPERUSER_CONF_KEY, new String[0])); this.conf.getStrings(AccessControlLists.SUPERUSER_CONF_KEY, new String[0]));