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 E7DD217F26 for ; Fri, 17 Jul 2015 12:10:15 +0000 (UTC) Received: (qmail 28815 invoked by uid 500); 17 Jul 2015 12:10:15 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 28785 invoked by uid 500); 17 Jul 2015 12:10:15 -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 28776 invoked by uid 99); 17 Jul 2015 12:10:15 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jul 2015 12:10:15 +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 384B7D5605 for ; Fri, 17 Jul 2015 12:10:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.555 X-Spam-Level: X-Spam-Status: No, score=0.555 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.226, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id EUcblgqEwipA for ; Fri, 17 Jul 2015 12:10:09 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with SMTP id EF9DA20EFB for ; Fri, 17 Jul 2015 12:10:08 +0000 (UTC) Received: (qmail 28681 invoked by uid 99); 17 Jul 2015 12:10:08 -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; Fri, 17 Jul 2015 12:10:08 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 87FFDE0006; Fri, 17 Jul 2015 12:10:08 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ivasilinets@apache.org To: commits@ignite.incubator.apache.org Message-Id: <1ecff2dc0bc8443fba72d5c980d0861f@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: incubator-ignite git commit: #ignite-961: fix test for java7 Date: Fri, 17 Jul 2015 12:10:08 +0000 (UTC) Repository: incubator-ignite Updated Branches: refs/heads/ignite-961 e80010e86 -> a7f664e7f #ignite-961: fix test for java7 Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/a7f664e7 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/a7f664e7 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/a7f664e7 Branch: refs/heads/ignite-961 Commit: a7f664e7f9aa0101c8a7c23ebc7b492884f8194f Parents: e80010e Author: ivasilinets Authored: Fri Jul 17 15:09:58 2015 +0300 Committer: ivasilinets Committed: Fri Jul 17 15:09:58 2015 +0300 ---------------------------------------------------------------------- .../processors/rest/JettyRestProcessorAbstractSelfTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/a7f664e7/modules/clients/src/test/java/org/apache/ignite/internal/processors/rest/JettyRestProcessorAbstractSelfTest.java ---------------------------------------------------------------------- diff --git a/modules/clients/src/test/java/org/apache/ignite/internal/processors/rest/JettyRestProcessorAbstractSelfTest.java b/modules/clients/src/test/java/org/apache/ignite/internal/processors/rest/JettyRestProcessorAbstractSelfTest.java index 9504dc6..e1425ff 100644 --- a/modules/clients/src/test/java/org/apache/ignite/internal/processors/rest/JettyRestProcessorAbstractSelfTest.java +++ b/modules/clients/src/test/java/org/apache/ignite/internal/processors/rest/JettyRestProcessorAbstractSelfTest.java @@ -1095,7 +1095,7 @@ abstract class JettyRestProcessorAbstractSelfTest extends AbstractRestProcessorS String map = "function(nodes, arg) {" + "var words = arg.split(\" \");" + "for (var i = 0; i < words.length; i++) {" + - "var f = function (word) {" + + "var f = function(word) {" + "return word.length;" + "};" + "emit(f, words[i], nodes[i % nodes.length]);" + @@ -1104,8 +1104,8 @@ abstract class JettyRestProcessorAbstractSelfTest extends AbstractRestProcessorS String reduce = "function(results) {"+ "var sum = 0;"+ - "for (var i = 0; i < results.length; ++i) {"+ - "sum += results[i];"+ + "for (var i = 0; i < results.size(); ++i) {"+ + "sum += results.get(i).intValue();"+ "}" + "return sum;" + "};";