diff --git a/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java b/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java index 9b4de4ebc4ac8dbc96550360be5f57853a500d14..c720b3116c6c64735cd6e0d02eeb100820dd8126 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