ignite-454 jdk8 compatibility fixes
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/3fa658fb Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/3fa658fb Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/3fa658fb Branch: refs/heads/ignite-454 Commit: 3fa658fbe228fba6889920c28acc4179c19b5808 Parents: d50065b Author: avinogradov <avinogra...@gridgain.com> Authored: Thu Mar 19 15:21:51 2015 +0300 Committer: avinogradov <avinogra...@gridgain.com> Committed: Thu Mar 19 15:21:51 2015 +0300 ---------------------------------------------------------------------- .../ignite/examples8/computegrid/ComputeClosureExample.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/3fa658fb/examples/src/main/java8/org/apache/ignite/examples8/computegrid/ComputeClosureExample.java ---------------------------------------------------------------------- diff --git a/examples/src/main/java8/org/apache/ignite/examples8/computegrid/ComputeClosureExample.java b/examples/src/main/java8/org/apache/ignite/examples8/computegrid/ComputeClosureExample.java index 54efcb9..a1b5650 100644 --- a/examples/src/main/java8/org/apache/ignite/examples8/computegrid/ComputeClosureExample.java +++ b/examples/src/main/java8/org/apache/ignite/examples8/computegrid/ComputeClosureExample.java @@ -47,17 +47,14 @@ public class ComputeClosureExample { System.out.println(">>> Compute closure example started."); // Execute closure on all cluster nodes. - Collection<Integer> res = ignite.compute().apply( - new IgniteClosure<String, Integer>() { - @Override public Integer apply(String word) { + Collection<Integer> res = ignite.compute().<String, Integer>apply((word) -> { System.out.println(); System.out.println(">>> Printing '" + word + "' on this node from ignite job."); // Return number of letters in the word. return word.length(); } - }, - + , // Job parameters. Ignite will create as many jobs as there are parameters. Arrays.asList("Count characters using closure".split(" ")) );