Return-Path: X-Original-To: apmail-nifi-commits-archive@minotaur.apache.org Delivered-To: apmail-nifi-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EBD2617E6F for ; Mon, 2 Mar 2015 04:04:12 +0000 (UTC) Received: (qmail 91826 invoked by uid 500); 2 Mar 2015 04:04:12 -0000 Delivered-To: apmail-nifi-commits-archive@nifi.apache.org Received: (qmail 91790 invoked by uid 500); 2 Mar 2015 04:04:12 -0000 Mailing-List: contact commits-help@nifi.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.incubator.apache.org Delivered-To: mailing list commits@nifi.incubator.apache.org Received: (qmail 91781 invoked by uid 99); 2 Mar 2015 04:04:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2015 04:04:12 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 02 Mar 2015 04:03:48 +0000 Received: (qmail 88520 invoked by uid 99); 2 Mar 2015 04:03:40 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2015 04:03:40 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 61F31E0D43; Mon, 2 Mar 2015 04:03:40 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: joewitt@apache.org To: commits@nifi.incubator.apache.org Date: Mon, 02 Mar 2015 04:04:05 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [26/50] [abbrv] incubator-nifi git commit: Adjusting scope of methods as they are specific to the JsonPath related processors X-Virus-Checked: Checked by ClamAV on apache.org Adjusting scope of methods as they are specific to the JsonPath related processors Project: http://git-wip-us.apache.org/repos/asf/incubator-nifi/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-nifi/commit/d6948601 Tree: http://git-wip-us.apache.org/repos/asf/incubator-nifi/tree/d6948601 Diff: http://git-wip-us.apache.org/repos/asf/incubator-nifi/diff/d6948601 Branch: refs/heads/develop Commit: d6948601cd26d5a7c6cfccaaef297cebe91a9d2e Parents: 46bf048 Author: Aldrin Piri Authored: Mon Feb 23 22:51:37 2015 -0500 Committer: Aldrin Piri Committed: Mon Feb 23 22:51:37 2015 -0500 ---------------------------------------------------------------------- .../nifi/processors/standard/AbstractJsonPathProcessor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/d6948601/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/AbstractJsonPathProcessor.java ---------------------------------------------------------------------- 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 cb4dcf6..54edc70 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(); }