From bcb8811c5344f8ce0ab8f9451941946ed9659b3a Mon Sep 17 00:00:00 2001 From: Christian Gendreau Date: Mon, 23 Dec 2024 11:50:18 -0500 Subject: [PATCH] Fixed Checkstyle --- .../java/ca/gc/aafc/dina/service/IdentifierTypeService.java | 1 - .../ca/gc/aafc/dina/validation/IdentifierTypeValidator.java | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dina-base-api/src/main/java/ca/gc/aafc/dina/service/IdentifierTypeService.java b/dina-base-api/src/main/java/ca/gc/aafc/dina/service/IdentifierTypeService.java index 21499f01..5692f141 100644 --- a/dina-base-api/src/main/java/ca/gc/aafc/dina/service/IdentifierTypeService.java +++ b/dina-base-api/src/main/java/ca/gc/aafc/dina/service/IdentifierTypeService.java @@ -36,5 +36,4 @@ protected void preCreate(T entity) { public void validateBusinessRules(T identifierType) { applyBusinessRule(identifierType, identifierTypeValidator); } - } diff --git a/dina-base-api/src/main/java/ca/gc/aafc/dina/validation/IdentifierTypeValidator.java b/dina-base-api/src/main/java/ca/gc/aafc/dina/validation/IdentifierTypeValidator.java index bca949e1..bda54e23 100644 --- a/dina-base-api/src/main/java/ca/gc/aafc/dina/validation/IdentifierTypeValidator.java +++ b/dina-base-api/src/main/java/ca/gc/aafc/dina/validation/IdentifierTypeValidator.java @@ -19,8 +19,8 @@ public IdentifierTypeValidator(@Named("validationMessageSource") MessageSource m @Override public void validateTarget(IdentifierType target, Errors errors) { - if(StringUtils.isNotBlank(target.getUriTemplate())) { - if(!target.getUriTemplate().contains("$1")) { + if (StringUtils.isNotBlank(target.getUriTemplate())) { + if (!target.getUriTemplate().contains("$1")) { errors.reject(MISSING_PLACEHOLDER_KEY, getMessage(MISSING_PLACEHOLDER_KEY)); } }