verhas commented on a change in pull request #462: General Code Cleanup
URL: https://github.com/apache/commons-lang/pull/462#discussion_r329200459
##########
File path: src/test/java/org/apache/commons/lang3/builder/DiffResultTest.java
##########
@@ -78,11 +78,10 @@ public void testIterator() {
final Iterator<Diff<?>> expectedIterator = diffs.iterator();
final DiffResult list = new DiffResult(lhs, rhs, diffs, SHORT_STYLE);
- final Iterator<Diff<?>> iterator = list.iterator();
- while (iterator.hasNext()) {
+ for (Diff<?> diff : (Iterable<Diff<?>>) list) {
Review comment:
This transformation was automatically done by IntelliJ.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services