Commit 690dc02
committed
Deprecate MongoIterable#forEach(Block<? super TResult> block)
With the addition of the default method Iterable#forEach(Consumer)} in
Java 8, MongoIterable#forEach(Block<? super TResult> block) results in
an error at the point of call of forEach when using a lambda, which can
only be resolved by casting to either Block or Consumer. Rather than
keep that unfriendly API, we deprecate MongoIterable#forEach so that
it can be removed in the next major release of the driver (which will
required Java 8).
JAVA-30461 parent ef1c166 commit 690dc02
1 file changed
+3
-0
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| 60 | + | |
59 | 61 | | |
| 62 | + | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
| |||
0 commit comments