mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8350548: java.lang.classfile package javadoc has errors
Reviewed-by: liach
This commit is contained in:
parent
e1081cffcb
commit
ab86a13519
1 changed files with 3 additions and 3 deletions
|
@ -368,13 +368,13 @@
|
||||||
* <p>
|
* <p>
|
||||||
* or lift the code transform into the class transform directly:
|
* or lift the code transform into the class transform directly:
|
||||||
* {@snippet lang=java :
|
* {@snippet lang=java :
|
||||||
* ClassTransform ct = ClassTransform.transformingMethodBodiess(fooToBar);
|
* ClassTransform ct = ClassTransform.transformingMethodBodies(fooToBar);
|
||||||
* }
|
* }
|
||||||
* <p>
|
* <p>
|
||||||
* and then transform the classfile:
|
* and then transform the classfile:
|
||||||
* {@snippet lang=java :
|
* {@snippet lang=java :
|
||||||
* var cc = ClassFile.of();
|
* var cc = ClassFile.of();
|
||||||
* byte[] newBytes = cc.transform(cc.parse(bytes), ct);
|
* byte[] newBytes = cc.transformClass(cc.parse(bytes), ct);
|
||||||
* }
|
* }
|
||||||
* <p>
|
* <p>
|
||||||
* This is much more concise (and less error-prone) than the equivalent
|
* This is much more concise (and less error-prone) than the equivalent
|
||||||
|
@ -393,7 +393,7 @@
|
||||||
*
|
*
|
||||||
* {@snippet lang=java :
|
* {@snippet lang=java :
|
||||||
* var cc = ClassFile.of();
|
* var cc = ClassFile.of();
|
||||||
* byte[] newBytes = cc.transform(cc.parse(bytes),
|
* byte[] newBytes = cc.transformClass(cc.parse(bytes),
|
||||||
* ClassTransform.transformingMethods(
|
* ClassTransform.transformingMethods(
|
||||||
* MethodTransform.transformingCode(
|
* MethodTransform.transformingCode(
|
||||||
* fooToBar.andThen(instrumentCalls))));
|
* fooToBar.andThen(instrumentCalls))));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue