You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ki...@apache.org on 2020/08/26 02:01:02 UTC

[commons-collections] branch master updated (ac61e06 -> 0fbfbfc)

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

kinow pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-collections.git.


    from ac61e06  Merge pull request #164 from dota17/license
     new 7b92e56  [COLLECTIONS-765] Corrected javadoc and thrown exception type to match the functionallity
     new c82461d  [COLLECTIONS-765] changelog
     new 0fbfbfc  Merge branch 'pr-176'

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/changes/changes.xml                                            | 3 +++
 .../apache/commons/collections4/iterators/ListIteratorWrapper.java | 7 ++++---
 2 files changed, 7 insertions(+), 3 deletions(-)


[commons-collections] 02/03: [COLLECTIONS-765] changelog

Posted by ki...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kinow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-collections.git

commit c82461d0d2305c6abf84af721100ec469cd21efe
Author: Bruno P. Kinoshita <ki...@apache.org>
AuthorDate: Wed Aug 26 13:53:29 2020 +1200

    [COLLECTIONS-765] changelog
---
 src/changes/changes.xml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 0da4fbd..d95b354 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -21,6 +21,9 @@
   </properties>
   <body>
   <release version="4.5" date="2020-MM-DD" description="Maintenance release.">
+    <action issue="COLLECTIONS-765" dev="kinow" type="fix" due-to="Tobias Kiecker">
+      Update Javadoc of ListIteratorWrapper#remove.
+    </action>
     <action issue="COLLECTIONS-708" dev="kinow" type="fix" due-to="dota17">
       Add hashCode method to CollectionUtils that supports an equator parameter.
     </action>


[commons-collections] 03/03: Merge branch 'pr-176'

Posted by ki...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kinow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-collections.git

commit 0fbfbfca658ab7e3c80a2d7ad55eb8b41e9ebb4a
Merge: ac61e06 c82461d
Author: Bruno P. Kinoshita <ki...@apache.org>
AuthorDate: Wed Aug 26 13:54:19 2020 +1200

    Merge branch 'pr-176'
    
    This closes #176

 src/changes/changes.xml                                            | 3 +++
 .../apache/commons/collections4/iterators/ListIteratorWrapper.java | 7 ++++---
 2 files changed, 7 insertions(+), 3 deletions(-)


[commons-collections] 01/03: [COLLECTIONS-765] Corrected javadoc and thrown exception type to match the functionallity

Posted by ki...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kinow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-collections.git

commit 7b92e562abac1d96abf492a3e91918253d6db39e
Author: Tobi <ki...@informatik.hu-berlin.de>
AuthorDate: Fri Aug 21 16:40:39 2020 +0200

    [COLLECTIONS-765] Corrected javadoc and thrown exception type to match the functionallity
---
 .../apache/commons/collections4/iterators/ListIteratorWrapper.java | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/commons/collections4/iterators/ListIteratorWrapper.java b/src/main/java/org/apache/commons/collections4/iterators/ListIteratorWrapper.java
index 52a89d2..7784dfb 100644
--- a/src/main/java/org/apache/commons/collections4/iterators/ListIteratorWrapper.java
+++ b/src/main/java/org/apache/commons/collections4/iterators/ListIteratorWrapper.java
@@ -203,12 +203,13 @@ public class ListIteratorWrapper<E> implements ResettableListIterator<E> {
     }
 
     /**
-     * Throws {@link UnsupportedOperationException} if {@link #previous()} has ever been called.
+     * Removes the last element that was returned by {@link #next()} or {@link #previous()} from the underlying collection.
+     * This call can only be made once per call to {@code next} or {@code previous} and only if {@link #add()} was not called in between.
      *
-     * @throws UnsupportedOperationException always
+     * @throws IllegalStateException if {@code next} or {@code previous} have not been called before, or if {@code remove} or {@code add} have been called after the last call to {@code next} or {@code previous}
      */
     @Override
-    public void remove() throws UnsupportedOperationException {
+    public void remove() throws IllegalStateException {
         if (iterator instanceof ListIterator) {
             iterator.remove();
             return;