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

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


The following commit(s) were added to refs/heads/master by this push:
     new dbb8a25e9 Use -=
dbb8a25e9 is described below

commit dbb8a25e9806c32288026398bd360148efa1c49e
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Mon Jan 15 09:16:01 2024 -0500

    Use -=
---
 src/main/java/org/apache/commons/collections4/CollectionUtils.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/commons/collections4/CollectionUtils.java 
b/src/main/java/org/apache/commons/collections4/CollectionUtils.java
index 3ae1da873..1a3e2450d 100644
--- a/src/main/java/org/apache/commons/collections4/CollectionUtils.java
+++ b/src/main/java/org/apache/commons/collections4/CollectionUtils.java
@@ -1953,11 +1953,11 @@ public class CollectionUtils {
         final Iterator<E> iterator = input.iterator();
         while (count > 0) {
             if (startIndex > 0) {
-                startIndex = startIndex - 1;
+                startIndex -= 1;
                 iterator.next();
                 continue;
             }
-            count = count - 1;
+            count -= 1;
             result.add(iterator.next());
             iterator.remove();
         }

Reply via email to