You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by vl...@apache.org on 2023/05/11 07:35:41 UTC

[jmeter] branch master updated: style: replace collections4.EnumerationUtils.toList with Java's Collections.list

This is an automated email from the ASF dual-hosted git repository.

vladimirsitnikov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new f051714ef7 style: replace collections4.EnumerationUtils.toList with Java's Collections.list
f051714ef7 is described below

commit f051714ef75e2f5d2731e1f1e437218c6279bad6
Author: Vladimir Sitnikov <si...@gmail.com>
AuthorDate: Thu May 11 10:35:06 2023 +0300

    style: replace collections4.EnumerationUtils.toList with Java's Collections.list
---
 .../java/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java  | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/components/src/main/java/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java b/src/components/src/main/java/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
index 329e3d21b4..4f44ca2219 100644
--- a/src/components/src/main/java/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
+++ b/src/components/src/main/java/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
@@ -61,7 +61,6 @@ import javax.swing.tree.TreeNode;
 import javax.swing.tree.TreePath;
 import javax.swing.tree.TreeSelectionModel;
 
-import org.apache.commons.collections4.EnumerationUtils;
 import org.apache.commons.collections4.queue.CircularFifoQueue;
 import org.apache.commons.lang3.StringUtils;
 import org.apache.jmeter.JMeter;
@@ -264,7 +263,7 @@ implements ActionListener, TreeSelectionListener, Clearable, ItemListener {
 
     private static Set<Object> extractExpandedObjects(final Enumeration<TreePath> expandedElements) {
         if (expandedElements != null) {
-            final List<TreePath> list = EnumerationUtils.toList(expandedElements);
+            final List<TreePath> list = Collections.list(expandedElements);
             log.debug("Expanded: {}", list);
             Set<Object> result = list.stream()
                     .map(TreePath::getLastPathComponent)