turcsanyip commented on a change in pull request #3966: NIFI-6992 - Add "Batch 
Size" property to GetHDFSFileInfo processor
URL: https://github.com/apache/nifi/pull/3966#discussion_r365193100
 
 

 ##########
 File path: 
nifi-commons/nifi-utils/src/main/java/org/apache/nifi/processor/util/StandardValidators.java
 ##########
 @@ -507,6 +507,20 @@ public ValidationResult validate(final String subject, 
final String input, final
     // FACTORY METHODS FOR VALIDATORS
     //
     //
+    public static Validator createAllowEmptyValidator(Validator delegate) {
+        return (subject, input, context) -> {
+            ValidationResult validationResult;
+
+            if (input == null || input.equals("")) {
 
 Review comment:
   isEmpty() method of this class could be used.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to