Return-Path: X-Original-To: apmail-ignite-commits-archive@minotaur.apache.org Delivered-To: apmail-ignite-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 7632618A80 for ; Thu, 4 Jun 2015 08:51:31 +0000 (UTC) Received: (qmail 62274 invoked by uid 500); 4 Jun 2015 08:51:31 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 62242 invoked by uid 500); 4 Jun 2015 08:51:31 -0000 Mailing-List: contact commits-help@ignite.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.incubator.apache.org Delivered-To: mailing list commits@ignite.incubator.apache.org Received: (qmail 62233 invoked by uid 99); 4 Jun 2015 08:51:31 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Jun 2015 08:51:31 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id EDDDECB4C6 for ; Thu, 4 Jun 2015 08:51:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.791 X-Spam-Level: * X-Spam-Status: No, score=1.791 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Gko6ew6b8MjB for ; Thu, 4 Jun 2015 08:51:21 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id 5531A42AD6 for ; Thu, 4 Jun 2015 08:51:21 +0000 (UTC) Received: (qmail 61953 invoked by uid 99); 4 Jun 2015 08:51:20 -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, 04 Jun 2015 08:51:20 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D424AE02EE; Thu, 4 Jun 2015 08:51:20 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: akuznetsov@apache.org To: commits@ignite.incubator.apache.org Date: Thu, 04 Jun 2015 08:51:20 -0000 Message-Id: <664ed1f02e1645218a4bc504d9cbe455@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/5] incubator-ignite git commit: IGNITE-983: Added support for primitive types. Repository: incubator-ignite Updated Branches: refs/heads/ignite-sprint-5 922c1c445 -> bf3203a42 IGNITE-983: Added support for primitive types. Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/11c0b904 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/11c0b904 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/11c0b904 Branch: refs/heads/ignite-sprint-5 Commit: 11c0b904a934c31ac936a8793cd11bf34af7634b Parents: 97d0bc1 Author: AKuznetsov Authored: Wed Jun 3 14:26:49 2015 +0700 Committer: AKuznetsov Committed: Wed Jun 3 14:26:49 2015 +0700 ---------------------------------------------------------------------- .../org/apache/ignite/configuration/CacheConfiguration.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/11c0b904/modules/core/src/main/java/org/apache/ignite/configuration/CacheConfiguration.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/configuration/CacheConfiguration.java b/modules/core/src/main/java/org/apache/ignite/configuration/CacheConfiguration.java index 2c7d8c1..8b1e1a5 100644 --- a/modules/core/src/main/java/org/apache/ignite/configuration/CacheConfiguration.java +++ b/modules/core/src/main/java/org/apache/ignite/configuration/CacheConfiguration.java @@ -1664,7 +1664,14 @@ public class CacheConfiguration extends MutableConfiguration { A.ensure(indexedTypes == null || (indexedTypes.length & 1) == 0, "Number of indexed types is expected to be even. Refer to method javadoc for details."); - this.indexedTypes = indexedTypes; + int len = indexedTypes.length; + + Class[] newIndexedTypes = new Class[len]; + + for (int i = 0; i < len; i++) + newIndexedTypes[i] = U.box(indexedTypes[i]); + + this.indexedTypes = newIndexedTypes; return this; }