This is an automated email from the ASF dual-hosted git repository. exceptionfactory pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/nifi.git
commit 15696ad86a2716c20d3f1889daa1f23f6e11298b Author: EndzeitBegins <16666115+endzeitbeg...@users.noreply.github.com> AuthorDate: Sat May 11 14:25:08 2024 +0200 NIFI-13217 Updated ProcessSession Comments to List Immutable Attributes This closes #8819 Signed-off-by: David Handermann <exceptionfact...@apache.org> --- .../src/main/java/org/apache/nifi/processor/ProcessSession.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nifi-api/src/main/java/org/apache/nifi/processor/ProcessSession.java b/nifi-api/src/main/java/org/apache/nifi/processor/ProcessSession.java index b3a33dcb3f..e6516ca68e 100644 --- a/nifi-api/src/main/java/org/apache/nifi/processor/ProcessSession.java +++ b/nifi-api/src/main/java/org/apache/nifi/processor/ProcessSession.java @@ -430,7 +430,8 @@ public interface ProcessSession { /** * Removes the attribute with the given {@code key} from the given {@link FlowFile}. * <p> - * If the {@code key} is named {@code uuid}, this method will return the same FlowFile without removing any attribute. + * The attributes with the keys {@code uuid}, {@code path}, and {@code filename} will not be removed. + * If the {@code key} is one of those, this method will return the same FlowFile without removing any attribute. * * @param flowFile to update * @param key of attribute to remove @@ -447,7 +448,7 @@ public interface ProcessSession { /** * Removes the attributes with the given {@code keys} from the given {@link FlowFile}. * <p> - * If the set of keys contains the value {@code uuid}, this key will be ignored. + * The attributes with the keys {@code uuid}, {@code path}, and {@code filename} will not be removed. * * @param flowFile to update * @param keys of attributes to remove @@ -464,7 +465,7 @@ public interface ProcessSession { /** * Removes all attributes from the given {@link FlowFile} whose key matches the given pattern. * <p> - * If the pattern matches the key {@code uuid}, this key will not be removed. + * The attributes with the keys {@code uuid}, {@code path}, and {@code filename} will not be removed. * * @param flowFile to update * @param keyPattern pattern to match each {@link FlowFile} attribute against; may be null, in which case no attribute is removed