Skip to content

Commit

Permalink
HBASE-22764 Fixed remaining Checkstyle issues in the hbase-rsgroup mo…
Browse files Browse the repository at this point in the history
…dule

Signed-off-by: stack <[email protected]>
  • Loading branch information
HorizonNet committed Jul 30, 2019
1 parent 11b647b commit 70ec78c
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ private void checkOnlineServersOnly(Set<Address> servers) throws ConstraintExcep
* Check passed name. Fail if nulls or if corresponding RSGroupInfo not found.
* @return The RSGroupInfo named <code>name</code>
*/
private RSGroupInfo getAndCheckRSGroupInfo(String name)
throws IOException {
private RSGroupInfo getAndCheckRSGroupInfo(String name) throws IOException {
if (StringUtils.isEmpty(name)) {
throw new ConstraintException("RSGroup cannot be null.");
}
Expand Down Expand Up @@ -276,8 +275,7 @@ private void moveRegionsToServers(Set<Address> servers, Set<TableName> tables,
value="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE",
justification="Ignoring complaint because don't know what it is complaining about")
@Override
public void moveServers(Set<Address> servers, String targetGroupName)
throws IOException {
public void moveServers(Set<Address> servers, String targetGroupName) throws IOException {
if (servers == null) {
throw new ConstraintException("The list of servers to move cannot be null.");
}
Expand Down

0 comments on commit 70ec78c

Please sign in to comment.