You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2022/04/11 18:19:11 UTC

[GitHub] [accumulo-examples] ctubbsii commented on a diff in pull request #99: Fix sample example - update compaction configuration

ctubbsii commented on code in PR #99:
URL: https://github.com/apache/accumulo-examples/pull/99#discussion_r847612493


##########
src/main/java/org/apache/accumulo/examples/sample/SampleExample.java:
##########
@@ -144,6 +143,7 @@ public static void main(String[] args) throws Exception {
 
       System.out.println("Scanning with new sampler configuration : ");
       print(scanner);
+      scanner.close();

Review Comment:
   This should be in a try-with-resources block instead of an explicit close call.



-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org