Return-Path: X-Original-To: apmail-zest-commits-archive@minotaur.apache.org Delivered-To: apmail-zest-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 EC75317545 for ; Thu, 21 May 2015 10:25:17 +0000 (UTC) Received: (qmail 22592 invoked by uid 500); 21 May 2015 10:25:17 -0000 Delivered-To: apmail-zest-commits-archive@zest.apache.org Received: (qmail 22544 invoked by uid 500); 21 May 2015 10:25:17 -0000 Mailing-List: contact commits-help@zest.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zest.apache.org Delivered-To: mailing list commits@zest.apache.org Received: (qmail 22431 invoked by uid 99); 21 May 2015 10:25:00 -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; Thu, 21 May 2015 10:25:00 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C472EE4ABB; Thu, 21 May 2015 10:25:00 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: niclas@apache.org To: commits@zest.apache.org Date: Thu, 21 May 2015 10:25:03 -0000 Message-Id: <6890cd90c5e6492f8ca36987992c1097@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer 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. 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 Authored: Thu May 21 16:19:52 2015 +0800 Committer: Niclas Hedhman 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 +