Skip to content

Commit

Permalink
Merge pull request #102 from sebastian-toepfer/remove_unnecessary_met…
Browse files Browse the repository at this point in the history
…hod_reference

remove unnecessary method reference
  • Loading branch information
sebastian-toepfer authored Jan 23, 2024
2 parents c71352d + e120cac commit e070043
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 e070043

Please sign in to comment.