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

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

                Author: ASF GitHub Bot
            Created on: 08/Sep/21 09:22
            Start Date: 08/Sep/21 09:22
    Worklog Time Spent: 10m 
      Work Description: coveralls edited a comment on pull request #250:
URL: 
https://github.com/apache/commons-collections/pull/250#issuecomment-914645718


   
   [![Coverage 
Status](https://coveralls.io/builds/42722290/badge)](https://coveralls.io/builds/42722290)
   
   Coverage decreased (-0.03%) to 90.115% when pulling 
**18bb8734d69b3729402bcae8f0e5a12fdc80774d on 
scordio:COLLECTIONS-799-UnmodifiableNavigableSet** into 
**ddb4f78cfffc3392d897f7d59b75db946bf3a055 on apache:master**.
   


-- 
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.

To unsubscribe, e-mail: issues-unsubscr...@commons.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

    Worklog Id:     (was: 647849)
    Time Spent: 40m  (was: 0.5h)

> UnmodifiableNavigableSet can be modified by pollFirst() and pollLast()
> ----------------------------------------------------------------------
>
>                 Key: COLLECTIONS-799
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-799
>             Project: Commons Collections
>          Issue Type: Bug
>          Components: Collection, Set
>    Affects Versions: 4.4
>            Reporter: Stefano Cordio
>            Priority: Major
>             Fix For: 4.5
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> [{{pollFirst()}}|https://docs.oracle.com/javase/7/docs/api/java/util/NavigableSet.html#pollFirst()]
>  and 
> [{{pollLast()}}|https://docs.oracle.com/javase/7/docs/api/java/util/NavigableSet.html#pollLast()]
>  are successfully executed and do not throw an 
> {{UnsupportedOperationException}} on an {{UnmodifiableNavigableSet}} instance.
> In my opinion, 
> {{org.apache.commons.collections4.set.UnmodifiableNavigableSet}} should have 
> an implementation similar to 
> {{java.util.Collections.UnmodifiableNavigableSet}}, where both methods throw 
> an {{UnsupportedOperationException}}: 
> https://github.com/openjdk/jdk/blob/708407eddc9d52c01de02e3986c05e1c6225fa85/src/java.base/share/classes/java/util/Collections.java#L1278-L1279



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

Reply via email to