Skip to content

Commit 063e75f

Browse files
Query: throw helpful error if using closed query (#818)
1 parent b139e6a commit 063e75f

File tree

1 file changed

+1
-1
lines changed
  • objectbox-java/src/main/java/io/objectbox/query

1 file changed

+1
-1
lines changed

objectbox-java/src/main/java/io/objectbox/query/Query.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ protected void finalize() throws Throwable {
140140
* If possible, call this always once done with this. Otherwise, will be called once this is finalized (e.g. garbage
141141
* collected).
142142
* <p>
143-
* Calling any other methods of this afterwards will throw an exception.
143+
* Calling any other methods of this afterwards will throw an {@link IllegalStateException}.
144144
*/
145145
public synchronized void close() {
146146
if (handle != 0) {

0 commit comments

Comments
 (0)