Adopt new reactor tuple implementation

This commit is contained in:
BoykoAlex
2017-10-23 13:54:58 -04:00
parent 9998f3908e
commit ebae1d0026

View File

@@ -221,8 +221,9 @@ public class JandexIndex {
// If not found look at indices owned by this
// JandexIndex instance
.orElseGet(() -> streamOfIndices()
.map(e -> Tuples.of(e.getT1(), e.getT2().getClassByName(fqName)))
.filter(e -> e.getT2() != null).map(e -> createType(e)).findFirst()
.map(e -> Tuples.of(e.getT1(), Optional.ofNullable(e.getT2().getClassByName(fqName))))
.filter(t -> t.getT2().isPresent())
.map(e -> createType(Tuples.of(e.getT1(), e.getT2().get()))).findFirst()
.orElse(null));
}