[ https://issues.apache.org/jira/browse/COLLECTIONS-795?focusedWorklogId=603513&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-603513 ]
ASF GitHub Bot logged work on COLLECTIONS-795: ---------------------------------------------- Author: ASF GitHub Bot Created on: 28/May/21 13:26 Start Date: 28/May/21 13:26 Worklog Time Spent: 10m Work Description: XenoAmess commented on pull request #238: URL: https://github.com/apache/commons-collections/pull/238#issuecomment-850417839 > The CI flagged failing tests are not stemming from any code that I have touched, > How to resolve? checkstyles fails. <details> https://travis-ci.com/github/apache/commons-collections/jobs/508633787 [ERROR] src/main/java/org/apache/commons/collections4/IterableUtils.java:[574,21] (whitespace) WhitespaceAfter: ',' is not followed by whitespace. [ERROR] src/main/java/org/apache/commons/collections4/IterableUtils.java:[574,46] (whitespace) WhitespaceAfter: ',' is not followed by whitespace. [ERROR] src/main/java/org/apache/commons/collections4/IterableUtils.java:[578,47] (whitespace) WhitespaceAfter: ',' is not followed by whitespace. [ERROR] src/main/java/org/apache/commons/collections4/IterableUtils.java:[580,41] (whitespace) WhitespaceAfter: ',' is not followed by whitespace. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[74,7] (indentation) Indentation: 'ctor def' child has incorrect indentation level 6, expected level should be 8. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[75,7] (indentation) Indentation: 'ctor def' child has incorrect indentation level 6, expected level should be 8. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[88,7] (indentation) Indentation: 'method def' child has incorrect indentation level 6, expected level should be 8. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[101,7] (indentation) Indentation: 'method def' child has incorrect indentation level 6, expected level should be 8. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[114,7] (indentation) Indentation: 'method def' child has incorrect indentation level 6, expected level should be 8. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[125,7] (indentation) Indentation: 'if' has incorrect indentation level 6, expected level should be 8. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[126,9] (indentation) Indentation: 'if' child has incorrect indentation level 8, expected level should be 12. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[127,7] (indentation) Indentation: 'if rcurly' has incorrect indentation level 6, expected level should be 8. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[129,7] (indentation) Indentation: 'method def' child has incorrect indentation level 6, expected level should be 8. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[140,5] (indentation) Indentation: 'member def modifier' has incorrect indentation level 4, expected level should be 8. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[142,5] (indentation) Indentation: 'member def modifier' has incorrect indentation level 4, expected level should be 8. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[144,5] (indentation) Indentation: 'ctor def modifier' has incorrect indentation level 4, expected level should be 8. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[145,7] (indentation) Indentation: 'ctor def' child has incorrect indentation level 6, expected level should be 12. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[146,7] (indentation) Indentation: 'ctor def' child has incorrect indentation level 6, expected level should be 12. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[147,5] (indentation) Indentation: 'ctor def rcurly' has incorrect indentation level 4, expected level should be 8. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[156,5] (indentation) Indentation: 'method def modifier' has incorrect indentation level 4, expected level should be 8. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[157,7] (indentation) Indentation: 'method def' child has incorrect indentation level 6, expected level should be 12. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[158,5] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 4, expected level should be 8. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[160,5] (indentation) Indentation: 'method def modifier' has incorrect indentation level 4, expected level should be 8. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[161,7] (indentation) Indentation: 'method def' child has incorrect indentation level 6, expected level should be 12. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[162,5] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 4, expected level should be 8. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[164,5] (indentation) Indentation: 'method def modifier' has incorrect indentation level 4, expected level should be 8. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[165,7] (indentation) Indentation: 'method def' child has incorrect indentation level 6, expected level should be 12. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[166,5] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 4, expected level should be 8. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[168,5] (indentation) Indentation: 'method def modifier' has incorrect indentation level 4, expected level should be 8. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[170,7] (indentation) Indentation: 'method def' child has incorrect indentation level 6, expected level should be 12. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[171,5] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 4, expected level should be 8. [ERROR] src/main/java/org/apache/commons/collections4/iterators/PairedIterator.java:[172,3] (indentation) Indentation: 'class def rcurly' has incorrect indentation level 2, expected level should be 4. [ERROR] src/main/java/org/apache/commons/collections4/IteratorUtils.java:[921,21] (whitespace) WhitespaceAfter: ',' is not followed by whitespace. [ERROR] src/main/java/org/apache/commons/collections4/IteratorUtils.java:[921,41] (whitespace) WhitespaceAfter: ',' is not followed by whitespace. [ERROR] src/main/java/org/apache/commons/collections4/PairedIterable.java:[85,21] (whitespace) WhitespaceAfter: ',' is not followed by whitespace. [ERROR] src/main/java/org/apache/commons/collections4/PairedIterable.java:[85,41] (whitespace) WhitespaceAfter: ',' is not followed by whitespace. [ERROR] src/main/java/org/apache/commons/collections4/PairedIterable.java:[97,31] (whitespace) WhitespaceAfter: ',' is not followed by whitespace. [ERROR] src/test/java/org/apache/commons/collections4/PairedIterableTest.java:[64,9] (whitespace) WhitespaceAfter: 'for' is not followed by whitespace. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[33,3] (indentation) Indentation: 'ctor def modifier' has incorrect indentation level 2, expected level should be 4. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[34,5] (indentation) Indentation: 'ctor def' child has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[35,3] (indentation) Indentation: 'ctor def rcurly' has incorrect indentation level 2, expected level should be 4. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[39,3] (indentation) Indentation: 'member def modifier' has incorrect indentation level 2, expected level should be 4. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[40,3] (indentation) Indentation: 'member def modifier' has incorrect indentation level 2, expected level should be 4. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[41,3] (indentation) Indentation: 'member def modifier' has incorrect indentation level 2, expected level should be 4. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[42,3] (indentation) Indentation: 'member def modifier' has incorrect indentation level 2, expected level should be 4. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[45,3] (indentation) Indentation: 'member def modifier' has incorrect indentation level 2, expected level should be 4. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[46,3] (indentation) Indentation: 'member def modifier' has incorrect indentation level 2, expected level should be 4. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[48,3] (indentation) Indentation: 'method def modifier' has incorrect indentation level 2, expected level should be 4. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[50,5] (indentation) Indentation: 'method def' child has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[52,5] (indentation) Indentation: 'method def' child has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[53,5] (indentation) Indentation: 'method def' child has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[54,5] (indentation) Indentation: 'method def' child has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[55,5] (indentation) Indentation: 'method def' child has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[57,5] (indentation) Indentation: 'method def' child has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[59,5] (indentation) Indentation: 'for' has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[60,7] (indentation) Indentation: 'for' child has incorrect indentation level 6, expected level should be 12. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[61,7] (indentation) Indentation: 'for' child has incorrect indentation level 6, expected level should be 12. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[62,5] (indentation) Indentation: 'for rcurly' has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[64,5] (indentation) Indentation: 'for' has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[65,7] (indentation) Indentation: 'for' child has incorrect indentation level 6, expected level should be 12. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[66,7] (indentation) Indentation: 'for' child has incorrect indentation level 6, expected level should be 12. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[67,5] (indentation) Indentation: 'for rcurly' has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[68,3] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 2, expected level should be 4. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[70,3] (indentation) Indentation: 'method def modifier' has incorrect indentation level 2, expected level should be 4. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[72,5] (indentation) Indentation: 'method def' child has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[73,3] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 2, expected level should be 4. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[77,3] (indentation) Indentation: 'method def modifier' has incorrect indentation level 2, expected level should be 4. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[79,5] (indentation) Indentation: 'method def' child has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[80,3] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 2, expected level should be 4. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[82,3] (indentation) Indentation: 'method def modifier' has incorrect indentation level 2, expected level should be 4. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[84,5] (indentation) Indentation: 'method def' child has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[85,3] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 2, expected level should be 4. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[87,3] (indentation) Indentation: 'method def modifier' has incorrect indentation level 2, expected level should be 4. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[88,5] (indentation) Indentation: 'method def' child has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[92,5] (indentation) Indentation: 'for' has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[93,7] (indentation) Indentation: 'for' child has incorrect indentation level 6, expected level should be 12. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[94,7] (indentation) Indentation: 'for' child has incorrect indentation level 6, expected level should be 12. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[96,7] (indentation) Indentation: 'for' child has incorrect indentation level 6, expected level should be 12. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[96,44] (whitespace) NoWhitespaceBefore: ',' is preceded with whitespace. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[97,7] (indentation) Indentation: 'for' child has incorrect indentation level 6, expected level should be 12. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[97,41] (whitespace) NoWhitespaceBefore: ',' is preceded with whitespace. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[98,5] (indentation) Indentation: 'for rcurly' has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[100,5] (indentation) Indentation: 'method def' child has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[101,3] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 2, expected level should be 4. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[103,3] (indentation) Indentation: 'method def modifier' has incorrect indentation level 2, expected level should be 4. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[104,5] (indentation) Indentation: 'method def' child has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[108,5] (indentation) Indentation: 'for' has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[109,7] (indentation) Indentation: 'for' child has incorrect indentation level 6, expected level should be 12. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[110,7] (indentation) Indentation: 'for' child has incorrect indentation level 6, expected level should be 12. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[112,7] (indentation) Indentation: 'for' child has incorrect indentation level 6, expected level should be 12. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[112,44] (whitespace) NoWhitespaceBefore: ',' is preceded with whitespace. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[113,7] (indentation) Indentation: 'for' child has incorrect indentation level 6, expected level should be 12. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[113,41] (whitespace) NoWhitespaceBefore: ',' is preceded with whitespace. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[114,5] (indentation) Indentation: 'for rcurly' has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[116,5] (indentation) Indentation: 'method def' child has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[117,3] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 2, expected level should be 4. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[119,3] (indentation) Indentation: 'method def modifier' has incorrect indentation level 2, expected level should be 4. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[120,5] (indentation) Indentation: 'method def' child has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[123,5] (indentation) Indentation: 'method def' child has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[124,3] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 2, expected level should be 4. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[126,3] (indentation) Indentation: 'method def modifier' has incorrect indentation level 2, expected level should be 4. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[127,5] (indentation) Indentation: 'method def' child has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[130,5] (indentation) Indentation: 'method def' child has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[131,3] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 2, expected level should be 4. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[134,3] (indentation) Indentation: 'method def modifier' has incorrect indentation level 2, expected level should be 4. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[135,5] (indentation) Indentation: 'method def' child has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[139,5] (indentation) Indentation: 'for' has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[140,7] (indentation) Indentation: 'for' child has incorrect indentation level 6, expected level should be 12. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[141,7] (indentation) Indentation: 'for' child has incorrect indentation level 6, expected level should be 12. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[143,7] (indentation) Indentation: 'for' child has incorrect indentation level 6, expected level should be 12. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[146,5] (indentation) Indentation: 'for rcurly' has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[148,5] (indentation) Indentation: 'method def' child has incorrect indentation level 4, expected level should be 8. [ERROR] src/test/java/org/apache/commons/collections4/iterators/PairedIteratorTest.java:[149,3] (indentation) Indentation: 'method def rcurly' has incorrect indentation level 2, expected level should be 4. </details> -- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 603513) Time Spent: 1h 40m (was: 1.5h) > provide a PairIterator to zip two iterators of different types. > --------------------------------------------------------------- > > Key: COLLECTIONS-795 > URL: https://issues.apache.org/jira/browse/COLLECTIONS-795 > Project: Commons Collections > Issue Type: New Feature > Components: Iterator > Reporter: Anant Damle > Priority: Minor > Time Spent: 1h 40m > Remaining Estimate: 0h > > ZippingIterator provides a way to simulatenously iterate over multiple > iterators of the *same-type.* > The proposed pair iterator allows simultaneously iterating over two iterators > of different type, like the example below: > {code:java} > Iterator<L> leftIterator = ...; > Iterator<R> rightIterator = ...; > PairIterator<L,R> pairIterator = PairIterator.of(leftIterator, rightIterator); > while (pairIterator.hasNext()) { > ImmutablePair<L,R> item = pairIterator.next(); > ... > }{code} > > Another convenience could be to use an Iterable for easy for-each constructs. > {code:java} > List<Integer> studentIds = ... > List<String> studentNames = ... > for (PairedItem<Integer, String> items : > IterableUtils.pairedIterable(studentIds, studentNames) { > Integer studentId = item.getLeft(); > String studentName = item.getRight(); > ... > } > {code} > -- This message was sent by Atlassian Jira (v8.3.4#803005)