Mercurial > hg > truffle
changeset 22050:7a5b874b8d12
Fix checkstyle problems
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Thu, 30 Jul 2015 17:12:08 -0700 |
parents | 6dd4ab4d76d3 |
children | 446ec33cadbe |
files | truffle/com.oracle.truffle.api/.checkstyle_checks.xml truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/debug/package-info.java truffle/com.oracle.truffle.dsl.processor/.checkstyle_checks.xml |
diffstat | 3 files changed, 14 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/truffle/com.oracle.truffle.api/.checkstyle_checks.xml Thu Jul 30 18:13:42 2015 +0200 +++ b/truffle/com.oracle.truffle.api/.checkstyle_checks.xml Thu Jul 30 17:12:08 2015 -0700 @@ -209,7 +209,7 @@ <module name="SuppressionCommentFilter"> <property name="offCommentFormat" value="CheckStyle: start generated"/> <property name="onCommentFormat" value="CheckStyle: stop generated"/> - <property name="checkFormat" value=".*Name|.*LineLength"/> + <property name="checkFormat" value=".*Name|.*LineLength|.*Header"/> </module> <module name="RegexpSingleline"> <property name="format" value="System\.(out|err)\.print"/>
--- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/debug/package-info.java Thu Jul 30 18:13:42 2015 +0200 +++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/debug/package-info.java Thu Jul 30 17:12:08 2015 -0700 @@ -30,12 +30,14 @@ * needs to turn debugging on when constructing its Truffle virtual machine: * <pre> * vm = {@link com.oracle.truffle.api.vm.TruffleVM#newVM()}. - * {@link com.oracle.truffle.api.vm.TruffleVM.Builder#onEvent(com.oracle.truffle.api.vm.EventConsumer) onEvent}(<b>new</b> {@link com.oracle.truffle.api.vm.EventConsumer EventConsumer}{@code <}{@link com.oracle.truffle.api.debug.ExecutionEvent}{@code >}() { + * {@link com.oracle.truffle.api.vm.TruffleVM.Builder#onEvent(com.oracle.truffle.api.vm.EventConsumer) onEvent}(<b>new</b> {@link com.oracle.truffle.api.vm.EventConsumer EventConsumer} + * {@code <}{@link com.oracle.truffle.api.debug.ExecutionEvent}{@code >}() { * <b>public void</b> handle({@link com.oracle.truffle.api.debug.ExecutionEvent} ev) { * <em>// configure the virtual machine as {@link com.oracle.truffle.api.vm.TruffleVM#eval(java.net.URI) new execution} is starting</em> * } * }). - * {@link com.oracle.truffle.api.vm.TruffleVM.Builder#onEvent(com.oracle.truffle.api.vm.EventConsumer) onEvent}(<b>new</b> {@link com.oracle.truffle.api.vm.EventConsumer EventConsumer}{@code <}{@link com.oracle.truffle.api.debug.SuspendedEvent}{@code >}() { + * {@link com.oracle.truffle.api.vm.TruffleVM.Builder#onEvent(com.oracle.truffle.api.vm.EventConsumer) onEvent}(<b>new</b> {@link com.oracle.truffle.api.vm.EventConsumer EventConsumer}{@code <} + * {@link com.oracle.truffle.api.debug.SuspendedEvent}{@code >}() { * <b>public void</b> handle({@link com.oracle.truffle.api.debug.SuspendedEvent} ev) { * <em>// execution is suspended on a breakpoint or on a step - decide what next</em> * } @@ -43,30 +45,31 @@ * </pre> * The debugging is controlled by events emitted by the Truffle virtual machine * at important moments. The {@link com.oracle.truffle.api.debug.ExecutionEvent} - * is sent when a call to {@link com.oracle.truffle.api.vm.TruffleVM#eval(java.net.URI) eval(...)} + * is sent when a call to {@link com.oracle.truffle.api.vm.TruffleVM#eval(java.net.URI) eval(...)} * is made and allows one to configure {@link com.oracle.truffle.api.debug.Breakpoint breakpoints} and/or decide whether the - * program should {@link com.oracle.truffle.api.debug.ExecutionEvent#prepareStepInto() step-into} or + * program should {@link com.oracle.truffle.api.debug.ExecutionEvent#prepareStepInto() step-into} or * {@link com.oracle.truffle.api.debug.ExecutionEvent#prepareContinue() just run}. Once the execution is suspended a * {@link com.oracle.truffle.api.debug.SuspendedEvent} is generated which * allows one to inspect the stack and choose the further execution mode - * ({@link com.oracle.truffle.api.debug.SuspendedEvent#prepareStepInto(int) step-into}, {@link com.oracle.truffle.api.debug.SuspendedEvent#prepareStepOver(int) step-over}, {@link com.oracle.truffle.api.debug.SuspendedEvent#prepareStepOut() step-out}, {@link com.oracle.truffle.api.debug.SuspendedEvent#prepareContinue() continue}). + * ({@link com.oracle.truffle.api.debug.SuspendedEvent#prepareStepInto(int) step-into}, {@link com.oracle.truffle.api.debug.SuspendedEvent#prepareStepOver(int) step-over}, + * {@link com.oracle.truffle.api.debug.SuspendedEvent#prepareStepOut() step-out}, {@link com.oracle.truffle.api.debug.SuspendedEvent#prepareContinue() continue}). * <p> * The events methods are only available when the event is being delivered and * shouldn't be used anytime later. Both events however provide access to * {@link com.oracle.truffle.api.debug.Debugger} which can be kept and used * during whole existence of the {@link com.oracle.truffle.api.vm.TruffleVM}. - * {@link com.oracle.truffle.api.debug.Debugger} is the central class that + * {@link com.oracle.truffle.api.debug.Debugger} is the central class that * keeps information about {@link com.oracle.truffle.api.debug.Debugger#getBreakpoints() registered breakpoints} * and allows one create new {@link com.oracle.truffle.api.debug.Breakpoint ones}. - * + * * <h4>Turning on Stepping Mode</h4> - * + * * In case you want your execution to pause on first statement, register for * {@link com.oracle.truffle.api.debug.ExecutionEvent} and once delivered * call {@link com.oracle.truffle.api.debug.ExecutionEvent#prepareStepInto()}. * * <h4>Register a {@link com.oracle.truffle.api.debug.Breakpoint}</h4> - * + * * Wait for execution to be started - which generates an * {@link com.oracle.truffle.api.debug.ExecutionEvent}. Use its * {@link com.oracle.truffle.api.debug.Debugger ev.getDebugger}()
--- a/truffle/com.oracle.truffle.dsl.processor/.checkstyle_checks.xml Thu Jul 30 18:13:42 2015 +0200 +++ b/truffle/com.oracle.truffle.dsl.processor/.checkstyle_checks.xml Thu Jul 30 17:12:08 2015 -0700 @@ -207,6 +207,6 @@ <module name="SuppressionCommentFilter"> <property name="offCommentFormat" value="CheckStyle: start generated"/> <property name="onCommentFormat" value="CheckStyle: stop generated"/> - <property name="checkFormat" value=".*Name|.*LineLength"/> + <property name="checkFormat" value=".*Name|.*LineLength|.*Header"/> </module> </module>