mirror of https://github.com/apache/nifi.git
81136bf550
- PadLeft(label, desiredLength, paddingChar) prepends the paddingChar (or the default value '_' if a paddingChar is not provided) to the label string until desiredLength is reached. - PadRight(label, desiredLength, paddingChar) appends the paddingChar (or the default value '_' if a paddingChar is not provided) to the label string until desiredLength is reached. Added Apache license disclaimers checkstyle fixes Replaced functional interface with abstract method Fixes and Further test cases: - Returns null if the input string is null - Returns a string full of padding if the input string is empty wip support padding string In order to be consistent with the feature introduced in #3615, RecordPath padLeft and padRight supports String padding. Since nifi-record-path doesn't have the Apache Commons StringUtils dependency, the padding methods have been added to the available NiFi commons StringUtils class. NIFI-6502 Updated top level NOTICE file to include citation for code borrowed from commons-lang3. borrowed pad methods from lang3 StringUtils Replaced `PadLeft` and `PadRight` record path functions with borrowed Apache Lang `StringUtils` padding methods and updated `nifi-assembly/NOTICE` accordingly This closes #3613 Signed-off-by: Mike Thomsen <mthomsen@apache.org> |
||
---|---|---|
.. | ||
src | ||
pom.xml |