瀏覽代碼

PlaceTextCommandValidator

Andrew Grant 2 月之前
父節點
當前提交
fbae24ea3c

+ 1 - 8
src/main/java/scot/carricksoftware/grants/validators/text/PlaceTextCommandValidator.java

@@ -10,8 +10,7 @@ import org.apache.logging.log4j.Logger;
 import org.springframework.stereotype.Component;
 import org.springframework.validation.BindingResult;
 import scot.carricksoftware.grants.commands.text.PlaceTextCommand;
-import scot.carricksoftware.grants.constants.ApplicationConstants;
-import scot.carricksoftware.grants.constants.ValidationConstants;
+
 
 @SuppressWarnings("unused")
 @Component
@@ -21,12 +20,6 @@ public class PlaceTextCommandValidator {
 
     public void validate(PlaceTextCommand personTextCommand, BindingResult bindingResult) {
       logger.debug("PlaceTextCommandValidator::validate");
-
-        if (personTextCommand.getPlace() == null) {
-            bindingResult.rejectValue("place", ApplicationConstants.EMPTY_STRING,
-                    null,
-                    ValidationConstants.PLACE_IS_NULL);
-        }
     }