You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by lo...@apache.org on 2022/02/14 11:43:57 UTC
[nifi] 02/02: Remove unused parameter from buildAtrs
This is an automated email from the ASF dual-hosted git repository.
lordgamez pushed a commit to branch NIFI-9058
in repository https://gitbox.apache.org/repos/asf/nifi.git
commit ff81c1c810bb972ebe7de9d9915fc024a76ec0f2
Author: Gabor Gyimesi <ga...@gmail.com>
AuthorDate: Mon Feb 14 12:42:54 2022 +0100
Remove unused parameter from buildAtrs
---
.../java/org/apache/nifi/processors/standard/AttributesToJSON.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/AttributesToJSON.java b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/AttributesToJSON.java
index 3e9fd61..b9af5c1 100644
--- a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/AttributesToJSON.java
+++ b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/AttributesToJSON.java
@@ -205,7 +205,7 @@ public class AttributesToJSON extends AbstractProcessor {
return result;
}
- private Set<String> buildAtrs(String atrList, Set<String> atrsToExclude) {
+ private Set<String> buildAtrs(String atrList) {
//If list of attributes specified get only those attributes. Otherwise write them all
if (StringUtils.isNotBlank(atrList)) {
String[] ats = StringUtils.split(atrList, AT_LIST_SEPARATOR);
@@ -225,7 +225,7 @@ public class AttributesToJSON extends AbstractProcessor {
attributesToRemove = context.getProperty(INCLUDE_CORE_ATTRIBUTES).asBoolean() ? Collections.EMPTY_SET : Arrays.stream(CoreAttributes.values())
.map(CoreAttributes::key)
.collect(Collectors.toSet());
- attributes = buildAtrs(context.getProperty(ATTRIBUTES_LIST).getValue(), attributesToRemove);
+ attributes = buildAtrs(context.getProperty(ATTRIBUTES_LIST).getValue());
nullValueForEmptyString = context.getProperty(NULL_VALUE_FOR_EMPTY_STRING).asBoolean();
destinationContent = DESTINATION_CONTENT.equals(context.getProperty(DESTINATION).getValue());
if(context.getProperty(ATTRIBUTES_REGEX).isSet()) {