polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nic...@apache.org
Subject [4/5] polygene-java git commit: Forgot to maintain the toString() proper.
Date Sun, 02 Jul 2017 15:34:21 GMT
Forgot to maintain the toString() proper.


Project: http://git-wip-us.apache.org/repos/asf/polygene-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/polygene-java/commit/3c7271c8
Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/3c7271c8
Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/3c7271c8

Branch: refs/heads/develop
Commit: 3c7271c8c037a9a9ccc04ceb99bf7028816e6309
Parents: c6b8916
Author: niclas <niclas@hedhman.org>
Authored: Sun Jul 2 14:47:50 2017 +0800
Committer: niclas <niclas@hedhman.org>
Committed: Sun Jul 2 14:47:50 2017 +0800

----------------------------------------------------------------------
 .../java/org/apache/polygene/runtime/value/ValueInstance.java   | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-java/blob/3c7271c8/core/runtime/src/main/java/org/apache/polygene/runtime/value/ValueInstance.java
----------------------------------------------------------------------
diff --git a/core/runtime/src/main/java/org/apache/polygene/runtime/value/ValueInstance.java
b/core/runtime/src/main/java/org/apache/polygene/runtime/value/ValueInstance.java
index 8af2e08..79deff9 100644
--- a/core/runtime/src/main/java/org/apache/polygene/runtime/value/ValueInstance.java
+++ b/core/runtime/src/main/java/org/apache/polygene/runtime/value/ValueInstance.java
@@ -158,6 +158,11 @@ public final class ValueInstance extends TransientInstance
     @Override
     public String toString()
     {
+        String json = toJsonString();
+        if( json != null )
+        {
+            return json;
+        }
         return "ValueInstance{" +
                "mixins=" + Arrays.toString( mixins ) +
                ", state=" + state +


Mime
View raw message