Skip to content

Commit 716feef

Browse files
authored
Merge pull request exercism#744 from matthewstyler/master
Fixes exercism#720 replace lambda with method ref
2 parents 0665a4f + 42d8488 commit 716feef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

exercises/allergies/src/example/java/Allergies.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public Allergies(int score) {
1212

1313
public List<Allergen> getList() {
1414
return EnumSet.allOf(Allergen.class).stream()
15-
.filter(x -> isAllergicTo(x))
15+
.filter(this::isAllergicTo)
1616
.collect(Collectors.toList());
1717
}
1818

0 commit comments

Comments
 (0)