Sho SHIMIZU

Simplify lambda expressions by using method reference

Change-Id: I434c0020ce8c2c25ac41d256d5ac141793972970
......@@ -336,8 +336,7 @@ public class SpringOpenTTP extends AbstractHandlerBehaviour
buckets = nextObjective
.next()
.stream()
.map((treatment) -> DefaultGroupBucket
.createSelectGroupBucket(treatment))
.map(DefaultGroupBucket::createSelectGroupBucket)
.collect(Collectors.toList());
if (!buckets.isEmpty()) {
final GroupKey key = new DefaultGroupKey(
......@@ -361,8 +360,7 @@ public class SpringOpenTTP extends AbstractHandlerBehaviour
buckets = nextObjective
.next()
.stream()
.map((treatment) -> DefaultGroupBucket
.createAllGroupBucket(treatment))
.map(DefaultGroupBucket::createAllGroupBucket)
.collect(Collectors.toList());
if (!buckets.isEmpty()) {
final GroupKey key = new DefaultGroupKey(
......