HBASE-26916 Fix missing braces warnings in DefaultVisibilityExpressionResolver (#4313)
Signed-off-by: Xiaolin Ha <haxiaolin@apache.org>
This commit is contained in:
parent
f51e57908f
commit
c4ff355915
|
@ -98,7 +98,9 @@ public class DefaultVisibilityExpressionResolver implements VisibilityExpression
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
LOG.error("Error scanning 'labels' table", e);
|
LOG.error("Error scanning 'labels' table", e);
|
||||||
} finally {
|
} finally {
|
||||||
if (scanner != null) scanner.close();
|
if (scanner != null) {
|
||||||
|
scanner.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
LOG.error("Failed reading 'labels' tags", ioe);
|
LOG.error("Failed reading 'labels' tags", ioe);
|
||||||
|
@ -111,12 +113,13 @@ public class DefaultVisibilityExpressionResolver implements VisibilityExpression
|
||||||
LOG.warn("Error closing 'labels' table", ioe);
|
LOG.warn("Error closing 'labels' table", ioe);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (connection != null)
|
if (connection != null) {
|
||||||
try {
|
try {
|
||||||
connection.close();
|
connection.close();
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
LOG.warn("Failed close of temporary connection", ioe);
|
LOG.warn("Failed close of temporary connection", ioe);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue