diff --git a/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java b/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java index bbf9b493b791ae0c6d8113857ea31f55eac794cc..426222eb1416712415f68c0840e87881b7d5928f 100644 --- a/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java +++ b/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java @@ -4101,9 +4101,12 @@ public void closeRunQuery(ResultSet resultSet) throws SQLException { /** * This method allows developers to run arbitrary SQL "SELECT" - * queries. The CaseDbQuery object will take care to acquiring + * queries. The CaseDbQuery object will take care of acquiring * the necessary database lock and when used in a try-with-resources * block will automatically take care of releasing the lock. + * If you do not use a try-with-resources block you must call + * CaseDbQuery.close() once you are done processing the results of + * the query. * @param query The query string to execute. * @return A CaseDbQuery instance. * @throws TskCoreException