Mercurial > hg > truffle
diff graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/FinalFieldTest.java @ 7530:5e3d1a68664e
applied mx eclipseformat to all Java files
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 23 Jan 2013 16:34:57 +0100 |
parents | a4b84ba6dc2e |
children | df1d665ca846 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/FinalFieldTest.java Wed Jan 23 16:34:38 2013 +0100 +++ b/graal/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/FinalFieldTest.java Wed Jan 23 16:34:57 2013 +0100 @@ -30,22 +30,23 @@ /** * <h3>Using Final Fields in Node Classes</h3> - * + * * <p> - * The usage of final fields in node classes is highly encouraged. It is beneficial for performance to declare every - * field that is not pointing to a child node as final. This gives the Truffle runtime an increased opportunity to - * optimize this node. + * The usage of final fields in node classes is highly encouraged. It is beneficial for performance + * to declare every field that is not pointing to a child node as final. This gives the Truffle + * runtime an increased opportunity to optimize this node. * </p> - * + * * <p> - * If a node has a value which may change at run time, but will rarely do so, it is recommended to speculate on the - * field being final. This involves starting executing with a node where this field is final and only if this - * turns out to be no longer the case, the node is replaced with an alternative implementation of the operation (see - * {@link ReplaceTest}). + * If a node has a value which may change at run time, but will rarely do so, it is recommended to + * speculate on the field being final. This involves starting executing with a node where this field + * is final and only if this turns out to be no longer the case, the node is replaced with an + * alternative implementation of the operation (see {@link ReplaceTest}). * </p> - * + * * <p> - * The next part of the Truffle API introduction is at {@link com.oracle.truffle.api.test.ReplaceTest}. + * The next part of the Truffle API introduction is at + * {@link com.oracle.truffle.api.test.ReplaceTest}. * </p> */ public class FinalFieldTest { @@ -78,6 +79,7 @@ } class TestChildNode extends Node { + private final int value; public TestChildNode(int value) { @@ -89,4 +91,3 @@ } } } -