[ 
https://issues.apache.org/jira/browse/COLLECTIONS-761?focusedWorklogId=535229&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-535229
 ]

ASF GitHub Bot logged work on COLLECTIONS-761:
----------------------------------------------

                Author: ASF GitHub Bot
            Created on: 13/Jan/21 07:55
            Start Date: 13/Jan/21 07:55
    Worklog Time Spent: 10m 
      Work Description: arturobernalg commented on a change in pull request 
#205:
URL: 
https://github.com/apache/commons-collections/pull/205#discussion_r556323500



##########
File path: src/test/java/org/apache/commons/collections4/IteratorUtilsTest.java
##########
@@ -46,7 +47,9 @@
 import java.util.LinkedHashSet;
 
 import org.apache.commons.collections4.iterators.*;
+import org.apache.commons.collections4.list.GrowthList;
 import org.apache.commons.collections4.map.EntrySetToMapIteratorAdapter;
+import org.junit.Assert;

Review comment:
       True. Fix It

##########
File path: src/test/java/org/apache/commons/collections4/IteratorUtilsTest.java
##########
@@ -46,7 +47,9 @@
 import java.util.LinkedHashSet;
 
 import org.apache.commons.collections4.iterators.*;
+import org.apache.commons.collections4.list.GrowthList;

Review comment:
       True. Fix It




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 535229)
    Time Spent: 0.5h  (was: 20m)

> org.apache.commons.collections.IteratorUtils.toList() will return empty list 
> when size of iterator is 1
> -------------------------------------------------------------------------------------------------------
>
>                 Key: COLLECTIONS-761
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-761
>             Project: Commons Collections
>          Issue Type: Bug
>    Affects Versions: 3.2.2
>            Reporter: Chen Lingqi
>            Priority: Minor
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> org.apache.commons.collections.IteratorUtils.toList() will return empty list 
> when size of iterator is 1. In this case, iterator size is 1, return value of 
> iterator.hasNext() is false, therefore, it will return empty list by default.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to