Skip to content

Commit b3aa240

Browse files
authored
Merge pull request #450 from wttech/remove-guava
minor
2 parents 441228d + 20fc966 commit b3aa240

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/aem/core/src/test/groovy/com/cognifide/apm/core/grammar/common/StackWithRootTest.groovy

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020

2121
package com.cognifide.apm.core.grammar.common
2222

23-
import java.util.stream.Collectors
24-
import java.util.stream.StreamSupport
23+
import org.apache.commons.collections4.IterableUtils
2524
import spock.lang.Specification
2625

2726
class StackWithRootTest extends Specification {
@@ -33,7 +32,7 @@ class StackWithRootTest extends Specification {
3332
stack.push("2")
3433
stack.push("3")
3534

36-
def newList = StreamSupport.stream(stack.spliterator(), false).collect(Collectors.toList())
35+
def newList = IterableUtils.toList(stack)
3736

3837
then:
3938
newList == ["3", "2", "1", "root"]

0 commit comments

Comments
 (0)