HBASE-26916 Fix missing braces warnings in DefaultVisibilityExpressionResolver (#4313)

Signed-off-by: Xiaolin Ha <haxiaolin@apache.org>
This commit is contained in:
Duo Zhang 2022-04-03 22:42:17 +08:00 committed by GitHub
parent f51e57908f
commit c4ff355915
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -98,7 +98,9 @@ public class DefaultVisibilityExpressionResolver implements VisibilityExpression
} catch (IOException e) {
LOG.error("Error scanning 'labels' table", e);
} finally {
if (scanner != null) scanner.close();
if (scanner != null) {
scanner.close();
}
}
} catch (IOException ioe) {
LOG.error("Failed reading 'labels' tags", ioe);
@ -111,7 +113,7 @@ public class DefaultVisibilityExpressionResolver implements VisibilityExpression
LOG.warn("Error closing 'labels' table", ioe);
}
}
if (connection != null)
if (connection != null) {
try {
connection.close();
} catch (IOException ioe) {
@ -119,6 +121,7 @@ public class DefaultVisibilityExpressionResolver implements VisibilityExpression
}
}
}
}
@Override
public List<Tag> createVisibilityExpTags(String visExpression) throws IOException {