diff --git a/src/main/java/com/primefactorsolutions/model/Employee.java b/src/main/java/com/primefactorsolutions/model/Employee.java index d62f09b..173704a 100644 --- a/src/main/java/com/primefactorsolutions/model/Employee.java +++ b/src/main/java/com/primefactorsolutions/model/Employee.java @@ -115,7 +115,7 @@ public class Employee extends BaseEntity implements UserDetails { @Enumerated(EnumType.STRING) private Status status; - public void setCustomContractType(String customContractType) { + public void setCustomContractType(final String customContractType) { this.customContractType = customContractType; } diff --git a/src/main/java/com/primefactorsolutions/model/MinAgeValidator.java b/src/main/java/com/primefactorsolutions/model/MinAgeValidator.java index 980967a..5c453f2 100644 --- a/src/main/java/com/primefactorsolutions/model/MinAgeValidator.java +++ b/src/main/java/com/primefactorsolutions/model/MinAgeValidator.java @@ -10,12 +10,12 @@ public class MinAgeValidator implements ConstraintValidator { private int minAge; @Override - public void initialize(MinAge constraintAnnotation) { + public void initialize(final MinAge constraintAnnotation) { this.minAge = constraintAnnotation.value(); } @Override - public boolean isValid(LocalDate birthday, ConstraintValidatorContext context) { + public boolean isValid(final LocalDate birthday, final ConstraintValidatorContext context) { if (birthday == null) { return true; } diff --git a/src/main/java/com/primefactorsolutions/service/EmployeeService.java b/src/main/java/com/primefactorsolutions/service/EmployeeService.java index b63bb47..c7ac471 100644 --- a/src/main/java/com/primefactorsolutions/service/EmployeeService.java +++ b/src/main/java/com/primefactorsolutions/service/EmployeeService.java @@ -1,5 +1,4 @@ package com.primefactorsolutions.service; -import com.google.common.base.Strings; import com.primefactorsolutions.model.Employee; import jakarta.persistence.EntityManager; import lombok.AllArgsConstructor; diff --git a/src/main/java/com/primefactorsolutions/views/EmployeeView.java b/src/main/java/com/primefactorsolutions/views/EmployeeView.java index 1e15de9..e717138 100644 --- a/src/main/java/com/primefactorsolutions/views/EmployeeView.java +++ b/src/main/java/com/primefactorsolutions/views/EmployeeView.java @@ -396,7 +396,7 @@ public class EmployeeView extends BeanValidationForm implements HasUrl return textField; } - private void handleContractTypeChange(Employee.ContractType selectedType) { + private void handleContractTypeChange(final Employee.ContractType selectedType) { if (selectedType == Employee.ContractType.OTROS) { customContractType.setVisible(true); customContractType.setRequired(true);