Mercurial > hg > truffle
diff truffle/com.oracle.truffle.api.profiles/src/com/oracle/truffle/api/profiles/BranchProfile.java @ 22526:a5e58793bbca
BranchProfile Javadoc sample was uncompilable. Fixed with the help of codesnippet tag.
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Wed, 30 Dec 2015 11:06:33 +0100 |
parents | d80a5ff56f51 |
children |
line wrap: on
line diff
--- a/truffle/com.oracle.truffle.api.profiles/src/com/oracle/truffle/api/profiles/BranchProfile.java Wed Dec 23 07:43:06 2015 +0100 +++ b/truffle/com.oracle.truffle.api.profiles/src/com/oracle/truffle/api/profiles/BranchProfile.java Wed Dec 30 11:06:33 2015 +0100 @@ -36,22 +36,7 @@ * </p> * * <p> - * <b> Usage example: </b> - * - * <pre> - * class SampleNode extends Node { - * - * final BranchProfile errorProfile = BranchProfile.create(); - * - * void execute(int value) { - * if (value == Integer.MAX_VALUE) { - * errorProfile.enter(); - * throw new Error("Invalid input value") - * } - * return value; - * } - * } - * </pre> + * <b> Usage example: </b> {@codesnippet BranchProfileSample} * * {@inheritDoc} *