Sho SHIMIZU

Simplify lambda expressions by using method reference

Change-Id: I434c0020ce8c2c25ac41d256d5ac141793972970
...@@ -336,8 +336,7 @@ public class SpringOpenTTP extends AbstractHandlerBehaviour ...@@ -336,8 +336,7 @@ public class SpringOpenTTP extends AbstractHandlerBehaviour
336 buckets = nextObjective 336 buckets = nextObjective
337 .next() 337 .next()
338 .stream() 338 .stream()
339 - .map((treatment) -> DefaultGroupBucket 339 + .map(DefaultGroupBucket::createSelectGroupBucket)
340 - .createSelectGroupBucket(treatment))
341 .collect(Collectors.toList()); 340 .collect(Collectors.toList());
342 if (!buckets.isEmpty()) { 341 if (!buckets.isEmpty()) {
343 final GroupKey key = new DefaultGroupKey( 342 final GroupKey key = new DefaultGroupKey(
...@@ -361,8 +360,7 @@ public class SpringOpenTTP extends AbstractHandlerBehaviour ...@@ -361,8 +360,7 @@ public class SpringOpenTTP extends AbstractHandlerBehaviour
361 buckets = nextObjective 360 buckets = nextObjective
362 .next() 361 .next()
363 .stream() 362 .stream()
364 - .map((treatment) -> DefaultGroupBucket 363 + .map(DefaultGroupBucket::createAllGroupBucket)
365 - .createAllGroupBucket(treatment))
366 .collect(Collectors.toList()); 364 .collect(Collectors.toList());
367 if (!buckets.isEmpty()) { 365 if (!buckets.isEmpty()) {
368 final GroupKey key = new DefaultGroupKey( 366 final GroupKey key = new DefaultGroupKey(
......