polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nic...@apache.org
Subject [4/6] zest-qi4j git commit: TransientInstance is used for other Instance types as well, and misleading during internal debugging. The toString() has been changed to show the actual mete type.
Date Thu, 21 May 2015 10:25:03 GMT
TransientInstance is used for other Instance types as well, and misleading during internal
debugging. The toString() has been changed to show the actual mete type.


Project: http://git-wip-us.apache.org/repos/asf/zest-qi4j/repo
Commit: http://git-wip-us.apache.org/repos/asf/zest-qi4j/commit/29e605ad
Tree: http://git-wip-us.apache.org/repos/asf/zest-qi4j/tree/29e605ad
Diff: http://git-wip-us.apache.org/repos/asf/zest-qi4j/diff/29e605ad

Branch: refs/heads/ZEST-22_toEntity-toValue
Commit: 29e605ada2a263ddc9aa0e6120936eaf9c457961
Parents: d5c5455
Author: Niclas Hedhman <niclas@hedhman.org>
Authored: Thu May 21 16:19:52 2015 +0800
Committer: Niclas Hedhman <niclas@hedhman.org>
Committed: Thu May 21 16:19:52 2015 +0800

----------------------------------------------------------------------
 .../main/java/org/qi4j/runtime/composite/TransientInstance.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zest-qi4j/blob/29e605ad/core/runtime/src/main/java/org/qi4j/runtime/composite/TransientInstance.java
----------------------------------------------------------------------
diff --git a/core/runtime/src/main/java/org/qi4j/runtime/composite/TransientInstance.java
b/core/runtime/src/main/java/org/qi4j/runtime/composite/TransientInstance.java
index 508acf0..811fce7 100644
--- a/core/runtime/src/main/java/org/qi4j/runtime/composite/TransientInstance.java
+++ b/core/runtime/src/main/java/org/qi4j/runtime/composite/TransientInstance.java
@@ -202,7 +202,9 @@ public class TransientInstance
         }
         if( first )
         {
-            return "TransientInstance{" +
+            String modelTypeName = compositeModel.getClass().getSimpleName();
+            String metaTypeModel = modelTypeName.substring( 0, modelTypeName.length() - 5
);
+            return metaTypeModel + "Instance{" +
                    "mixins=" + ( mixins == null ? null : Arrays.asList( mixins ) ) +
                    ", state=" + state +
                    ", compositeModel=" + compositeModel +


Mime
View raw message