Skip to content

Commit b36ca02

Browse files
author
Justin Lee
committed
replaced forEach with each
1 parent 1fe1848 commit b36ca02

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

driver-core/src/test/functional/com/mongodb/client/model/AggregatesFunctionalSpecification.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
249249

250250
helper.drop()
251251

252-
(0..50).forEach {
252+
(0..50).each {
253253
def size = (35 + it)
254254
def manufacturer = ['Sony', 'Samsung', 'Vizio'][it % 3]
255255
helper.insertDocuments(Document.parse(""" {
@@ -415,7 +415,7 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
415415

416416
helper.drop()
417417

418-
(1..100).forEach {
418+
(1..100).each {
419419
helper.insertDocuments(Document.parse("{price: ${it * 2}}"))
420420
}
421421

@@ -450,7 +450,7 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
450450
helper.drop()
451451

452452
def random = new SecureRandom()
453-
(1..2000).forEach {
453+
(1..2000).each {
454454
def document = new Document('price', random.nextDouble() * 5000D + 5.01D)
455455
helper.insertDocuments(document)
456456
}
@@ -478,7 +478,7 @@ class AggregatesFunctionalSpecification extends OperationFunctionalSpecification
478478

479479
def random = new SecureRandom()
480480
def total = random.nextInt(2000)
481-
(1..total).forEach {
481+
(1..total).each {
482482
helper.insertDocuments(new Document('price', random.nextDouble() * 5000D + 5.01D))
483483
}
484484

0 commit comments

Comments
 (0)