Fix test to see if select is of Fun<?> type.
This commit is contained in:
parent
b4dca9c710
commit
2f0801d36f
2 changed files with 6 additions and 2 deletions
|
@ -100,7 +100,8 @@ public abstract class AbstractOptionalOperation<E, O extends AbstractOptionalOpe
|
|||
|
||||
if (updateCache && result.isPresent()) {
|
||||
E r = result.get();
|
||||
if (!(r instanceof Fun)) {
|
||||
Class<?> resultClass = r.getClass();
|
||||
if (!(resultClass.getEnclosingClass() != null && resultClass.getEnclosingClass() == Fun.class)) {
|
||||
List<Facet> facets = getFacets();
|
||||
if (facets != null && facets.size() > 1) {
|
||||
sessionOps.updateCache(r, facets);
|
||||
|
|
|
@ -192,7 +192,10 @@ public abstract class AbstractStreamOperation<E, O extends AbstractStreamOperati
|
|||
List<Facet> facets = getFacets();
|
||||
resultStream.forEach(
|
||||
result -> {
|
||||
if (result != deleted && !(result instanceof Fun)) {
|
||||
Class<?> resultClass = result.getClass();
|
||||
if (result != deleted
|
||||
&& !(resultClass.getEnclosingClass() != null
|
||||
&& resultClass.getEnclosingClass() == Fun.class)) {
|
||||
cacheUpdate(uow, result, facets);
|
||||
}
|
||||
again.add(result);
|
||||
|
|
Loading…
Reference in a new issue