Skip to content

Commit

Permalink
remove unnecessary method reference
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-toepfer committed Jan 23, 2024
1 parent c71352d commit e120cac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ public Keyword createKeyword(final JsonSchema schema) {
.getJsonArray(name)
.stream()
.map(new DefaultJsonSchemaFactory()::create)
.collect(collectingAndThen(toList(), keywordCreator::apply));
.collect(collectingAndThen(toList(), keywordCreator));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ public String name() {

@Override
public Keyword createKeyword(final JsonSchema schema) {
return schema.asSubSchema(name).map(keywordCreator::apply).orElseThrow(IllegalArgumentException::new);
return schema.asSubSchema(name).map(keywordCreator).orElseThrow(IllegalArgumentException::new);
}
}

0 comments on commit e120cac

Please sign in to comment.