Fix test to see if select is of Fun<?> type.

This commit is contained in:
Greg Burd 2017-11-09 13:32:16 -05:00
parent b4dca9c710
commit 2f0801d36f
2 changed files with 6 additions and 2 deletions

View file

@ -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);

View file

@ -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);