From d6948601cd26d5a7c6cfccaaef297cebe91a9d2e Mon Sep 17 00:00:00 2001 From: Aldrin Piri Date: Mon, 23 Feb 2015 22:51:37 -0500 Subject: [PATCH] Adjusting scope of methods as they are specific to the JsonPath related processors --- .../nifi/processors/standard/AbstractJsonPathProcessor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/AbstractJsonPathProcessor.java b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/AbstractJsonPathProcessor.java index cb4dcf6ab2..54edc701c7 100644 --- a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/AbstractJsonPathProcessor.java +++ b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/AbstractJsonPathProcessor.java @@ -61,7 +61,7 @@ public abstract class AbstractJsonPathProcessor extends AbstractProcessor { } }; - public static DocumentContext validateAndEstablishJsonContext(ProcessSession processSession, FlowFile flowFile) { + static DocumentContext validateAndEstablishJsonContext(ProcessSession processSession, FlowFile flowFile) { final BooleanHolder validJsonHolder = new BooleanHolder(false); processSession.read(flowFile, new InputStreamCallback() { @@ -101,7 +101,7 @@ public abstract class AbstractJsonPathProcessor extends AbstractProcessor { return !(obj instanceof Map || obj instanceof List); } - public static String getResultRepresentation(Object jsonPathResult) { + static String getResultRepresentation(Object jsonPathResult) { if (isJsonScalar(jsonPathResult)) { return jsonPathResult.toString(); }