nifi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joew...@apache.org
Subject [01/50] [abbrv] incubator-nifi git commit: Preferring the constant empty string for clarity instead of quotes.
Date Mon, 02 Mar 2015 04:03:40 GMT
Repository: incubator-nifi
Updated Branches:
  refs/heads/NIFI-360 286277123 -> c1690f643
  refs/heads/develop 96a42cd72 -> 67a4faf13


Preferring the constant empty string for clarity instead of quotes.


Project: http://git-wip-us.apache.org/repos/asf/incubator-nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-nifi/commit/408f6363
Tree: http://git-wip-us.apache.org/repos/asf/incubator-nifi/tree/408f6363
Diff: http://git-wip-us.apache.org/repos/asf/incubator-nifi/diff/408f6363

Branch: refs/heads/develop
Commit: 408f636361cbad025752978e10775651b7daddf4
Parents: a058fd0
Author: Aldrin Piri <aldrinpiri@gmail.com>
Authored: Tue Feb 17 17:01:06 2015 -0500
Committer: Aldrin Piri <aldrinpiri@gmail.com>
Committed: Tue Feb 17 17:01:06 2015 -0500

----------------------------------------------------------------------
 .../org/apache/nifi/processors/standard/EvaluateJsonPath.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/408f6363/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EvaluateJsonPath.java
----------------------------------------------------------------------
diff --git a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EvaluateJsonPath.java
b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EvaluateJsonPath.java
index 093454d..3a64a34 100644
--- a/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EvaluateJsonPath.java
+++ b/nifi/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/EvaluateJsonPath.java
@@ -35,6 +35,7 @@ import org.apache.nifi.processor.io.OutputStreamCallback;
 import org.apache.nifi.processors.standard.util.JsonUtils;
 import org.apache.nifi.stream.io.BufferedOutputStream;
 import org.apache.nifi.util.ObjectHolder;
+import org.apache.nifi.util.StringUtils;
 
 import java.io.IOException;
 import java.io.OutputStream;
@@ -206,7 +207,7 @@ public class EvaluateJsonPath extends AbstractProcessor {
                 } catch (PathNotFoundException e) {
                     logger.warn("FlowFile {} could not find path {} for attribute key {}.",
new Object[]{flowFile.getId(), jsonPathExp.getPath(), jsonPathAttrKey}, e);
                     if (destination.equals(DESTINATION_ATTRIBUTE)) {
-                        jsonPathResults.put(jsonPathAttrKey, "");
+                        jsonPathResults.put(jsonPathAttrKey, StringUtils.EMPTY);
                         continue jsonPathEvalLoop;
                     } else {
                         processSession.transfer(flowFile, REL_NO_MATCH);


Mime
View raw message