Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-1938

Investigate renaming replace expression language method

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.6.1
    • Fix Version/s: None
    • Component/s: Core Framework

      Description

      As explored in NIFI-1919, the expression language string replacement methods could be more clearly named to differentiate their actions – the difference between replace and replaceAll is not their frequency of operation, but rather that replace accepts only literal strings, while replaceAll interprets the provided search pattern as a regular expression.

      Related, the ReplaceEvaluator, ReplaceAllEvaluator, and new ReplaceFirstEvaluator classes differ only by one line for each respective operation. It may be possible to refactor this to remove duplicate code.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                alopresto Andy LoPresto
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: