Committed by
Gerrit Code Review
Workaround for old compiler
- Was failing on eclise built-in compiler Change-Id: Ifd76449d0c1054876e447603aa3aff982c3a5e52
Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -213,7 +213,8 @@ public class ConsistentResourceStore extends AbstractStore<ResourceEvent, Resour | ... | @@ -213,7 +213,8 @@ public class ConsistentResourceStore extends AbstractStore<ResourceEvent, Resour |
213 | return lookup(childTxMap, x); | 213 | return lookup(childTxMap, x); |
214 | } | 214 | } |
215 | }) | 215 | }) |
216 | - .flatMap(Tools::stream) | 216 | + .filter(Optional::isPresent) |
217 | + .map(Optional::get) | ||
217 | .collect(Collectors.toList()); | 218 | .collect(Collectors.toList()); |
218 | // the order is preserved by LinkedHashMap | 219 | // the order is preserved by LinkedHashMap |
219 | Map<DiscreteResourceId, List<Resource>> resourceMap = resources.stream() | 220 | Map<DiscreteResourceId, List<Resource>> resourceMap = resources.stream() | ... | ... |
-
Please register or login to post a comment