Skip to content

Commit 722b41c

Browse files
committed
Fix a few Groovy warnings in QueryBatchCursorFunctionalSpecification
1 parent 369c6b4 commit 722b41c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

driver-core/src/test/functional/com/mongodb/operation/QueryBatchCursorFunctionalSpecification.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class QueryBatchCursorFunctionalSpecification extends OperationFunctionalSpecifi
205205
try {
206206
sleep(500)
207207
collectionHelper.insertDocuments(new DocumentCodec(), new Document('_id', 2).append('ts', new BsonTimestamp(6, 0)))
208-
} catch (interrupt) {
208+
} catch (ignored) {
209209
//pass
210210
} finally {
211211
latch.countDown()
@@ -320,14 +320,14 @@ class QueryBatchCursorFunctionalSpecification extends OperationFunctionalSpecifi
320320
cursor = new QueryBatchCursor<Document>(firstBatch, 0, 2, new DocumentCodec(), connectionSource)
321321

322322
CountDownLatch latch = new CountDownLatch(1)
323-
def seen;
323+
def seen = 0
324324
def thread = Thread.start {
325325
try {
326326
cursor.next()
327327
seen = 1
328328
cursor.next()
329329
seen = 2
330-
} catch (interrupt) {
330+
} catch (ignored) {
331331
// pass
332332
} finally {
333333
latch.countDown()

0 commit comments

Comments
 (0)