diff --git a/jdi-light-material-ui/src/main/java/com/epam/jdi/light/material/elements/displaydata/list/MUIList.java b/jdi-light-material-ui/src/main/java/com/epam/jdi/light/material/elements/displaydata/list/MUIList.java index 1340998259..e639d9aebf 100644 --- a/jdi-light-material-ui/src/main/java/com/epam/jdi/light/material/elements/displaydata/list/MUIList.java +++ b/jdi-light-material-ui/src/main/java/com/epam/jdi/light/material/elements/displaydata/list/MUIList.java @@ -8,8 +8,8 @@ import java.lang.reflect.Field; -import java.util.ArrayList; import java.util.List; +import java.util.stream.Collectors; import static com.epam.jdi.light.elements.pageobjects.annotations.objects.FillFromAnnotationRules.fieldHasAnnotation; @@ -49,7 +49,7 @@ public String headerLocator() { */ @Override public List items() { - return new ArrayList<>(core().finds(itemLocator)); + return core().finds(itemLocator).stream().collect(Collectors.toList()); } @Override