Skip to content

Commit 7314f84

Browse files
author
Graham Allan
committed
Make test pass by using a method reference.
1 parent c194627 commit 7314f84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/adoptopenjdk/lambda/tutorial/Documents.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class Documents {
3636
*/
3737
public static List<String> titlesOf(Document... documents) {
3838
return Arrays.stream(documents)
39-
.map(d -> d.getTitle())
39+
.map(Document::getTitle)
4040
.collect(toList());
4141
}
4242
}

0 commit comments

Comments
 (0)