HBASE-15912. REST module has 2 extent warnings in findbugs.

ScannerResource defines a variable params the is never used.
TableResource catches Exception when IOException is thrown.
This commit is contained in:
Sean Mackrory 2016-05-28 15:31:17 -06:00 committed by stack
parent f4470af95d
commit 4abc602e3b
2 changed files with 2 additions and 3 deletions

View File

@ -91,7 +91,6 @@ public class ScannerResource extends ResourceBase {
spec = new RowSpec(model.getStartRow(), endRow, model.getColumns(), model.getStartTime(), spec = new RowSpec(model.getStartRow(), endRow, model.getColumns(), model.getStartTime(),
model.getEndTime(), model.getMaxVersions()); model.getEndTime(), model.getMaxVersions());
} }
MultivaluedMap<String, String> params = uriInfo.getQueryParameters();
try { try {
Filter filter = ScannerResultGenerator.buildFilterFromModel(model); Filter filter = ScannerResultGenerator.buildFilterFromModel(model);

View File

@ -192,8 +192,8 @@ public class TableResource extends ResourceBase {
} }
int fetchSize = this.servlet.getConfiguration().getInt(Constants.SCAN_FETCH_SIZE, 10); int fetchSize = this.servlet.getConfiguration().getInt(Constants.SCAN_FETCH_SIZE, 10);
tableScan.setCaching(fetchSize); tableScan.setCaching(fetchSize);
return new TableScanResource(hTable.getScanner(tableScan), userRequestedLimit); return new TableScanResource(hTable.getScanner(tableScan), userRequestedLimit);
} catch (Exception exp) { } catch (IOException exp) {
servlet.getMetrics().incrementFailedScanRequests(1); servlet.getMetrics().incrementFailedScanRequests(1);
processException(exp); processException(exp);
LOG.warn(exp); LOG.warn(exp);