We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb06588 commit 3938bd4Copy full SHA for 3938bd4
src/main/java/com/marklogic/client/datamovement/ExportListener.java
@@ -101,8 +101,7 @@ protected DocumentPage getDocs(QueryBatch batch) {
101
*/
102
@Override
103
public void processEvent(QueryBatch batch) {
104
- try {
105
- DocumentPage docs = getDocs(batch);
+ try ( DocumentPage docs = getDocs(batch) ) {
106
while ( docs.hasNext() ) {
107
for ( Consumer<DocumentRecord> listener : exportListeners ) {
108
try {
0 commit comments