Skip to content

Commit 7250542

Browse files
committed
8374038: JDI EventRequestManager javadoc has unrendered @link tags inside an @code block
Reviewed-by: kevinw, amenkov
1 parent 9715e6d commit 7250542

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/jdk.jdi/share/classes/com/sun/jdi/request/EventRequestManager.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1998, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -251,13 +251,13 @@ ExceptionRequest createExceptionRequest(ReferenceType refType,
251251
* after the first step is detected. Thus a next line method
252252
* would do the following:
253253
* <pre>{@code
254-
* EventRequestManager mgr = myVM.{@link VirtualMachine#eventRequestManager eventRequestManager}();
254+
* EventRequestManager mgr = myVM.eventRequestManager();
255255
* StepRequest request = mgr.createStepRequest(myThread,
256-
* StepRequest.{@link StepRequest#STEP_LINE STEP_LINE},
257-
* StepRequest.{@link StepRequest#STEP_OVER STEP_OVER});
258-
* request.{@link EventRequest#addCountFilter addCountFilter}(1); // next step only
256+
* StepRequest.STEP_LINE,
257+
* StepRequest.STEP_OVER);
258+
* request.addCountFilter(1); // next step only
259259
* request.enable();
260-
* myVM.{@link VirtualMachine#resume resume}();
260+
* myVM.resume();
261261
* }</pre>
262262
*
263263
* @param thread the thread in which to step
@@ -382,7 +382,7 @@ StepRequest createStepRequest(ThreadReference thread,
382382
* Iterator iter = requestManager.stepRequests().iterator();
383383
* while (iter.hasNext()) {
384384
* requestManager.deleteEventRequest(iter.next());
385-
* }
385+
* }
386386
* </PRE>
387387
* may cause a {@link java.util.ConcurrentModificationException}.
388388
* Instead use

0 commit comments

Comments
 (0)