exceptionfactory commented on code in PR #9511:
URL: https://github.com/apache/nifi/pull/9511#discussion_r1838210790


##########
nifi-commons/nifi-record/src/main/java/org/apache/nifi/serialization/record/util/DataTypeUtils.java:
##########
@@ -2078,4 +2078,8 @@ public static boolean isFittingNumberType(final Object 
value, final RecordFieldT
 
         return false;
     }
+
+    private static boolean isBlank(String string) {
+        return string == null || string.isBlank();

Review Comment:
   Based on the usage, the `string == null` check appears to be unnecessary. 
With that, it looks like this method could be removed and `string.isBlank()` 
could be used directly.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to