From 0f78d25cee17e7150eb006edf33ac5e399024ec2 Mon Sep 17 00:00:00 2001 From: Matthias Fischer Date: Thu, 11 Jul 2024 17:53:29 +0200 Subject: [PATCH] chore(policy-api): [#734] CodeQL warnings --- .../BusinessPartnerNumberListValidatorTest.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/irs-policy-store/src/test/java/org/eclipse/tractusx/irs/policystore/validators/BusinessPartnerNumberListValidatorTest.java b/irs-policy-store/src/test/java/org/eclipse/tractusx/irs/policystore/validators/BusinessPartnerNumberListValidatorTest.java index b577b7796..e4de07319 100644 --- a/irs-policy-store/src/test/java/org/eclipse/tractusx/irs/policystore/validators/BusinessPartnerNumberListValidatorTest.java +++ b/irs-policy-store/src/test/java/org/eclipse/tractusx/irs/policystore/validators/BusinessPartnerNumberListValidatorTest.java @@ -141,23 +141,30 @@ public BusinessPartnerNumberListValidatorBuilder allowDefault(boolean allowDefau } public BusinessPartnerNumberListValidator build() { - ValidListOfBusinessPartnerNumbers annotation = new ValidListOfBusinessPartnerNumbers() { + + final var annotation = new ValidListOfBusinessPartnerNumbers() { + + @Override public Class annotationType() { return ValidListOfBusinessPartnerNumbers.class; } + @Override public String message() { return message; } + @Override public Class[] groups() { return groups; } + @Override public Class[] payload() { return payload; } + @Override public boolean allowDefault() { return allowDefault; }