#653 - Polishing.

Consistently add // at manually separated stream steps.
This commit is contained in:
Oliver Gierke
2017-10-16 17:57:18 +02:00
parent d9c53b5eeb
commit b217b6a4ab
11 changed files with 33 additions and 35 deletions

View File

@@ -67,9 +67,8 @@ public class Links implements Iterable<Link> {
*/
public Optional<Link> getLink(String rel) {
return links.stream()
.filter(link -> link.getRel().equals(rel))
.findFirst();
return links.stream() //
.filter(link -> link.getRel().equals(rel)).findFirst();
}
/**
@@ -79,9 +78,8 @@ public class Links implements Iterable<Link> {
*/
public List<Link> getLinks(String rel) {
return links.stream()
.filter(link -> link.getRel().endsWith(rel))
.collect(Collectors.toList());
return links.stream() //
.filter(link -> link.getRel().endsWith(rel)).collect(Collectors.toList());
}
/**