Github user markap14 commented on a diff in the pull request:
https://github.com/apache/nifi/pull/280#discussion_r56234292
--- Diff:
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/SplitText.java
---
@@ -134,6 +168,28 @@ protected void init(final
ProcessorInitializationContext context) {
}
@Override
+ protected Collection<ValidationResult>
customValidate(ValidationContext validationContext) {
+ ArrayList<ValidationResult> results = new ArrayList<>();
+
+ results.add(new ValidationResult.Builder()
+ .subject("Remove Trailing Newlines")
+
.valid(!validationContext.getProperty(REMOVE_TRAILING_NEWLINES).asBoolean())
+ .explanation("Property is deprecated; value must be set to
false. Future releases may remove this Property.")
+ .build());
+
+ final boolean invalidState =
(validationContext.getProperty(LINE_SPLIT_COUNT).asInteger() == 0
+ &&
validationContext.getProperty(FRAGMENT_MAX_SIZE).asDataSize(DataUnit.B) ==
null);
--- End diff --
I think this line should be:
&& !validationContext.getProperty(FRAGMENT_MAX_SIZE).isSet() );
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---