Skip to content

Commit

Permalink
chore(policy-api): [eclipse-tractusx#734] CodeQL warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmf committed Jul 11, 2024
1 parent 902469b commit 0f78d25
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,23 +141,30 @@ public BusinessPartnerNumberListValidatorBuilder allowDefault(boolean allowDefau
}

public BusinessPartnerNumberListValidator build() {
ValidListOfBusinessPartnerNumbers annotation = new ValidListOfBusinessPartnerNumbers() {

final var annotation = new ValidListOfBusinessPartnerNumbers() {

@Override
public Class<? extends Annotation> annotationType() {
return ValidListOfBusinessPartnerNumbers.class;
}

@Override
public String message() {
return message;
}

@Override
public Class<?>[] groups() {
return groups;
}

@Override
public Class<? extends Payload>[] payload() {
return payload;
}

@Override
public boolean allowDefault() {
return allowDefault;
}
Expand Down

0 comments on commit 0f78d25

Please sign in to comment.