File tree Expand file tree Collapse file tree 2 files changed +7
-13
lines changed
src/main/java/com/arangodb/internal/cursor Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -47,14 +47,11 @@ public ArangoIterator<T> iterator() {
47
47
48
48
@ Override
49
49
public void foreach (final Consumer <? super T > action ) {
50
- iterable .foreach (new Consumer <T >() {
51
- @ Override
52
- public void accept (final T t ) {
53
- if (predicate .test (t )) {
54
- action .accept (t );
55
- }
50
+ for (final T t : iterable ) {
51
+ if (predicate .test (t )) {
52
+ action .accept (t );
56
53
}
57
- });
54
+ }
58
55
}
59
56
60
57
}
Original file line number Diff line number Diff line change @@ -47,12 +47,9 @@ public ArangoIterator<T> iterator() {
47
47
48
48
@ Override
49
49
public void foreach (final Consumer <? super T > action ) {
50
- iterable .foreach (new Consumer <R >() {
51
- @ Override
52
- public void accept (final R t ) {
53
- action .accept (mapper .apply (t ));
54
- }
55
- });
50
+ for (final R t : iterable ) {
51
+ action .accept (mapper .apply (t ));
52
+ }
56
53
}
57
54
58
55
}
You can’t perform that action at this time.
0 commit comments