sureshanaparti commented on code in PR #6825:
URL: https://github.com/apache/cloudstack/pull/6825#discussion_r994025103
##########
usage/src/main/java/com/cloud/usage/UsageSanityChecker.java:
##########
@@ -120,6 +123,21 @@ protected void checkMaxUsage() throws SQLException {
lastCheckId);
}
+ private static int getAggregationRange(int aggregationRange,
PreparedStatement pstmt) {
+ try(ResultSet rs = pstmt.executeQuery();) {
Review Comment:
```suggestion
try (ResultSet rs = pstmt.executeQuery();) {
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]