diff options
Diffstat (limited to 'catalog-be/src/main/java/org/openecomp/sdc/be/components/validation/service/ServiceValidator.java')
-rw-r--r-- | catalog-be/src/main/java/org/openecomp/sdc/be/components/validation/service/ServiceValidator.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/validation/service/ServiceValidator.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/validation/service/ServiceValidator.java index 5cf490dbf3..984e03d9a1 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/validation/service/ServiceValidator.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/validation/service/ServiceValidator.java @@ -17,9 +17,9 @@ * limitations under the License. * ============LICENSE_END========================================================= */ - package org.openecomp.sdc.be.components.validation.service; +import java.util.List; import org.openecomp.sdc.be.components.validation.component.ComponentFieldValidator; import org.openecomp.sdc.be.components.validation.component.ComponentValidator; import org.openecomp.sdc.be.impl.ComponentsUtils; @@ -28,14 +28,13 @@ import org.openecomp.sdc.be.model.User; import org.openecomp.sdc.be.resources.data.auditing.AuditingActionEnum; import org.springframework.stereotype.Component; -import java.util.List; - @Component public class ServiceValidator extends ComponentValidator { private List<ServiceFieldValidator> serviceFieldValidators; - public ServiceValidator(ComponentsUtils componentsUtils, List<ComponentFieldValidator> componentFieldValidators, List<ServiceFieldValidator> serviceFieldValidators) { + public ServiceValidator(ComponentsUtils componentsUtils, List<ComponentFieldValidator> componentFieldValidators, + List<ServiceFieldValidator> serviceFieldValidators) { super(componentsUtils, componentFieldValidators); this.serviceFieldValidators = serviceFieldValidators; } @@ -43,7 +42,6 @@ public class ServiceValidator extends ComponentValidator { @Override public void validate(User user, org.openecomp.sdc.be.model.Component component, AuditingActionEnum actionEnum) { super.validate(user, component, actionEnum); - serviceFieldValidators.forEach(validator -> - validator.validateAndCorrectField(user,(Service)component,actionEnum)); + serviceFieldValidators.forEach(validator -> validator.validateAndCorrectField(user, (Service) component, actionEnum)); } } |