Skip to content

Commit

Permalink
Resolve conflict and apply project API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lnash94 committed Aug 22, 2023
1 parent e886632 commit b2ebe9c
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -777,14 +777,11 @@ private Schema setConstraintValueToSchema(ConstraintAnnotation constraintAnnot,
*/
private void extractedConstraintAnnotation(MetadataNode metadata,
ConstraintAnnotation.ConstraintAnnotationBuilder constraintBuilder) {

NodeList<AnnotationNode> annotations = metadata.annotations();
annotations.stream().filter(annot ->
(annot.annotReference() instanceof QualifiedNameReferenceNode &&
annotations.stream().filter(annot -> (annot.annotReference() instanceof QualifiedNameReferenceNode &&
((QualifiedNameReferenceNode) annot.annotReference()).modulePrefix().text()
.equals("constraint")))
.forEach(value -> {

Optional<MappingConstructorExpressionNode> fieldValues = value.annotValue();
if (fieldValues.isPresent()) {
Spliterator<MappingFieldNode> spliterator = fieldValues.get().fields().spliterator();
Expand Down

0 comments on commit b2ebe9c

Please sign in to comment.