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 26C0817A48 for ; Tue, 9 Jun 2015 23:58:00 +0000 (UTC) Received: (qmail 81694 invoked by uid 500); 9 Jun 2015 23:57:59 -0000 Delivered-To: apmail-zest-commits-archive@zest.apache.org Received: (qmail 81648 invoked by uid 500); 9 Jun 2015 23:57:59 -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 81573 invoked by uid 99); 9 Jun 2015 23:57:59 -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; Tue, 09 Jun 2015 23:57:59 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id AC0CDE0286; Tue, 9 Jun 2015 23:57:59 +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: Tue, 09 Jun 2015 23:58:02 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [04/14] 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/develop 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 +