Fix Sponge subject inheritance

This commit is contained in:
Luck 2018-03-18 10:41:27 +00:00
parent f63f652edb
commit 8c1c5c820c
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -46,6 +46,7 @@ public final class SubjectInheritanceGraphs {
@Override @Override
public Iterable<? extends CalculatedSubject> successors(CalculatedSubject subject) { public Iterable<? extends CalculatedSubject> successors(CalculatedSubject subject) {
return subject.getCombinedParents().stream() return subject.getCombinedParents().stream()
.map(ref -> ref.resolveLp().join())
.filter(p -> p instanceof CalculatedSubject) .filter(p -> p instanceof CalculatedSubject)
.map(p -> ((CalculatedSubject) p)) .map(p -> ((CalculatedSubject) p))
.collect(Collectors.toList()); .collect(Collectors.toList());
@ -66,6 +67,7 @@ public final class SubjectInheritanceGraphs {
@Override @Override
public Iterable<? extends CalculatedSubject> successors(CalculatedSubject subject) { public Iterable<? extends CalculatedSubject> successors(CalculatedSubject subject) {
return subject.getCombinedParents(this.contextSet).stream() return subject.getCombinedParents(this.contextSet).stream()
.map(ref -> ref.resolveLp().join())
.filter(p -> p instanceof CalculatedSubject) .filter(p -> p instanceof CalculatedSubject)
.map(p -> ((CalculatedSubject) p)) .map(p -> ((CalculatedSubject) p))
.collect(Collectors.toList()); .collect(Collectors.toList());