]> git.mxchange.org Git - jjobs-war.git/blobdiff - src/java/org/mxchange/jjobs/validator/names/JobsNameValidator.java
Updated copyright year
[jjobs-war.git] / src / java / org / mxchange / jjobs / validator / names / JobsNameValidator.java
index 1b8912ab279c4944bf186ed45e47bb9b79e848e8..b165a00bf963e14c8b408d2753a50a96e048f5dd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016 Roland Häder
+ * Copyright (C) 2016 - 2022 Free Software Foundation
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -19,7 +19,6 @@ package org.mxchange.jjobs.validator.names;
 import javax.faces.component.UIComponent;
 import javax.faces.context.FacesContext;
 import javax.faces.validator.FacesValidator;
-import javax.faces.validator.Validator;
 import javax.faces.validator.ValidatorException;
 import org.mxchange.jcoreee.validator.string.BaseStringValidator;
 
@@ -29,7 +28,7 @@ import org.mxchange.jcoreee.validator.string.BaseStringValidator;
  * @author Roland Häder<roland@mxchange.org>
  */
 @FacesValidator ("NameValidator")
-public class JobsNameValidator extends BaseStringValidator implements Validator {
+public class JobsNameValidator extends BaseStringValidator {
 
        /**
         * Serial number
@@ -39,7 +38,7 @@ public class JobsNameValidator extends BaseStringValidator implements Validator
        @Override
        public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException {
                // All accepted, required fields
-               String[] requiredFields = {"firstName", "familyName", "city", "street", "addressbookName"}; //NOI18N
+               final String[] requiredFields = {"firstName", "familyName", "city", "street", "addressbookName"}; //NOI18N
 
                // Pre-validation (example: not null, not a string, empty string ...)
                super.preValidate(context, component, value, requiredFields, false);