From 20fc9664de53de3d3eed42ff4dc2a621dfeb5156 Mon Sep 17 00:00:00 2001 From: Dominik Przybyl Date: Tue, 11 Mar 2025 17:45:04 +0100 Subject: [PATCH] minor --- .../apm/core/grammar/common/StackWithRootTest.groovy | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/aem/core/src/test/groovy/com/cognifide/apm/core/grammar/common/StackWithRootTest.groovy b/app/aem/core/src/test/groovy/com/cognifide/apm/core/grammar/common/StackWithRootTest.groovy index 85c5f288..760f6c37 100644 --- a/app/aem/core/src/test/groovy/com/cognifide/apm/core/grammar/common/StackWithRootTest.groovy +++ b/app/aem/core/src/test/groovy/com/cognifide/apm/core/grammar/common/StackWithRootTest.groovy @@ -20,8 +20,7 @@ package com.cognifide.apm.core.grammar.common -import java.util.stream.Collectors -import java.util.stream.StreamSupport +import org.apache.commons.collections4.IterableUtils import spock.lang.Specification class StackWithRootTest extends Specification { @@ -33,7 +32,7 @@ class StackWithRootTest extends Specification { stack.push("2") stack.push("3") - def newList = StreamSupport.stream(stack.spliterator(), false).collect(Collectors.toList()) + def newList = IterableUtils.toList(stack) then: newList == ["3", "2", "1", "root"]