commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject commons-scxml git commit: call static methods from static contexts
Date Sun, 24 Dec 2017 22:06:56 GMT
Repository: commons-scxml
Updated Branches:
  refs/heads/master 526c83a5f -> 9fb7a6368


call static methods from static contexts


Project: http://git-wip-us.apache.org/repos/asf/commons-scxml/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-scxml/commit/9fb7a636
Tree: http://git-wip-us.apache.org/repos/asf/commons-scxml/tree/9fb7a636
Diff: http://git-wip-us.apache.org/repos/asf/commons-scxml/diff/9fb7a636

Branch: refs/heads/master
Commit: 9fb7a6368684ce4f07db72c4310fc380388f120a
Parents: 526c83a
Author: Dave Brosius <dbrosius@mebigfatguy.com>
Authored: Sun Dec 24 17:06:44 2017 -0500
Committer: Dave Brosius <dbrosius@mebigfatguy.com>
Committed: Sun Dec 24 17:06:44 2017 -0500

----------------------------------------------------------------------
 src/main/java/org/apache/commons/scxml2/io/SCXMLReader.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-scxml/blob/9fb7a636/src/main/java/org/apache/commons/scxml2/io/SCXMLReader.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/scxml2/io/SCXMLReader.java b/src/main/java/org/apache/commons/scxml2/io/SCXMLReader.java
index 8446b0e..4b3c8dd 100644
--- a/src/main/java/org/apache/commons/scxml2/io/SCXMLReader.java
+++ b/src/main/java/org/apache/commons/scxml2/io/SCXMLReader.java
@@ -2100,8 +2100,8 @@ public final class SCXMLReader {
                 }
             }
             else if (children.getLength() == 1 && (cdata || child.getNodeType() ==
Node.TEXT_NODE )) {
-                String text = configuration.contentParser.trimContent(child.getNodeValue());
-                if (configuration.contentParser.hasJsonSignature(text)) {
+                String text = ContentParser.trimContent(child.getNodeValue());
+                if (ContentParser.hasJsonSignature(text)) {
                     try {
                         valueContainer.setParsedValue(new JsonValue(configuration.contentParser.parseJson(text),
cdata));
                     } catch (IOException e) {
@@ -2109,7 +2109,7 @@ public final class SCXMLReader {
                     }
                 }
                 else {
-                    valueContainer.setParsedValue(new TextValue(configuration.contentParser.spaceNormalizeContent(text),
+                    valueContainer.setParsedValue(new TextValue(ContentParser.spaceNormalizeContent(text),
                             cdata));
                 }
             } else if (children.getLength() == 1) {


Mime
View raw message