Skip to content

Commit

Permalink
fix(be):
Browse files Browse the repository at this point in the history
- Fixed code smell issues #2
  • Loading branch information
mamartinezmejia committed Apr 4, 2023
1 parent 4be8277 commit b93a3da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
package ca.bc.gov.app.validator.client;

import static ca.bc.gov.app.validator.common.CommonValidator.fieldIsMissingErrorMessage;
import ca.bc.gov.app.dto.client.ClientAddressDto;
import ca.bc.gov.app.dto.client.ClientContactDto;
import ca.bc.gov.app.entity.client.ProvinceCodeEntity;
import ca.bc.gov.app.repository.client.ProvinceCodeRepository;
import java.util.List;
import java.util.regex.Pattern;
import lombok.RequiredArgsConstructor;
import lombok.SneakyThrows;
import org.apache.commons.lang3.StringUtils;
Expand All @@ -12,9 +15,6 @@
import org.springframework.validation.Errors;
import org.springframework.validation.ValidationUtils;
import org.springframework.validation.Validator;
import java.util.List;
import java.util.regex.Pattern;
import static ca.bc.gov.app.validator.common.CommonValidator.fieldIsMissingErrorMessage;

@Component
@RequiredArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package ca.bc.gov.app.validator.client;

import static ca.bc.gov.app.validator.common.CommonValidator.fieldIsMissingErrorMessage;
import static ca.bc.gov.app.validator.common.CommonValidator.validateEmail;
import static ca.bc.gov.app.validator.common.CommonValidator.validatePhoneNumber;
import ca.bc.gov.app.dto.client.ClientContactDto;
import ca.bc.gov.app.entity.client.ContactTypeCodeEntity;
import ca.bc.gov.app.repository.client.ContactTypeCodeRepository;
Expand All @@ -10,9 +13,6 @@
import org.springframework.validation.Errors;
import org.springframework.validation.ValidationUtils;
import org.springframework.validation.Validator;
import static ca.bc.gov.app.validator.common.CommonValidator.fieldIsMissingErrorMessage;
import static ca.bc.gov.app.validator.common.CommonValidator.validateEmail;
import static ca.bc.gov.app.validator.common.CommonValidator.validatePhoneNumber;

@Component
@RequiredArgsConstructor
Expand Down

0 comments on commit b93a3da

Please sign in to comment.