Skip to content

Commit 223dc66

Browse files
committed
JavaDocs for Transaction.reset
1 parent e45d513 commit 223dc66

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

objectbox-java/src/main/java/io/objectbox/Transaction.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
import javax.annotation.concurrent.NotThreadSafe;
2222

23+
import io.objectbox.annotation.apihint.Experimental;
2324
import io.objectbox.annotation.apihint.Internal;
2425
import io.objectbox.internal.CursorFactory;
2526

@@ -124,7 +125,11 @@ public void abort() {
124125
nativeAbort(transaction);
125126
}
126127

127-
/** Efficient for read transactions. */
128+
/**
129+
* Will throw if Cursors are still active for this TX.
130+
* Efficient for read transactions.
131+
*/
132+
@Experimental
128133
public void reset() {
129134
checkOpen();
130135
initialCommitCount = store.commitCount;

0 commit comments

Comments
 (0)