This is an automated email from the ASF dual-hosted git repository. daim pushed a commit to branch OAK-11580 in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
commit c79afe2e3b7299e71df80702093c6b9227b17cac Author: Rishabh Kumar <[email protected]> AuthorDate: Tue Mar 11 11:51:07 2025 +0530 OAK-11580 : removed usage of Guava's Iterables.skip() with ListIterator --- .../org/apache/jackrabbit/oak/security/user/PasswordHistoryTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/PasswordHistoryTest.java b/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/PasswordHistoryTest.java index 1c5f08d1ba..bcf24336e4 100644 --- a/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/PasswordHistoryTest.java +++ b/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/PasswordHistoryTest.java @@ -19,6 +19,7 @@ package org.apache.jackrabbit.oak.security.user; import java.lang.reflect.Field; import java.util.Collections; import java.util.List; +import java.util.ListIterator; import java.util.Map; import javax.jcr.RepositoryException; @@ -263,8 +264,8 @@ public class PasswordHistoryTest extends AbstractSecurityTest implements UserCon // only the configured max-size number of entries in the history must be // checked. additional entries in the history must be ignored - Iterables.skip(oldPwds, 6); - history.updatePasswordHistory(userTree, oldPwds.iterator().next()); + ListIterator<String> listIterator = oldPwds.listIterator(6); + history.updatePasswordHistory(userTree, listIterator.next()); // after chaning the pwd again however the rep:pwdHistory property must // only contain the max-size number of passwords
