From dbb8a25e9806c32288026398bd360148efa1c49e Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Mon, 15 Jan 2024 09:16:01 -0500 Subject: [PATCH] Use -= --- .../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 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(); }