Mercurial > hg > truffle
changeset 21535:90fd03612631
removed use of lambda in JVMCI/Graal initialization code
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/ValueNode.java Sun May 24 16:29:41 2015 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/ValueNode.java Sun May 24 16:40:29 2015 +0200 @@ -101,7 +101,11 @@ return this instanceof ConstantNode; } - private static final NodePredicate IS_CONSTANT = node -> node instanceof ConstantNode; + private static final NodePredicate IS_CONSTANT = new NodePredicate() { + public boolean apply(Node n) { + return n instanceof ConstantNode; + } + }; public static NodePredicate isConstantPredicate() { return IS_CONSTANT;