Skip to content

Commit ab86a13

Browse files
committed
8350548: java.lang.classfile package javadoc has errors
Reviewed-by: liach
1 parent e1081cf commit ab86a13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/java.base/share/classes/java/lang/classfile/package-info.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,13 +368,13 @@
368368
* <p>
369369
* or lift the code transform into the class transform directly:
370370
* {@snippet lang=java :
371-
* ClassTransform ct = ClassTransform.transformingMethodBodiess(fooToBar);
371+
* ClassTransform ct = ClassTransform.transformingMethodBodies(fooToBar);
372372
* }
373373
* <p>
374374
* and then transform the classfile:
375375
* {@snippet lang=java :
376376
* var cc = ClassFile.of();
377-
* byte[] newBytes = cc.transform(cc.parse(bytes), ct);
377+
* byte[] newBytes = cc.transformClass(cc.parse(bytes), ct);
378378
* }
379379
* <p>
380380
* This is much more concise (and less error-prone) than the equivalent
@@ -393,7 +393,7 @@
393393
*
394394
* {@snippet lang=java :
395395
* var cc = ClassFile.of();
396-
* byte[] newBytes = cc.transform(cc.parse(bytes),
396+
* byte[] newBytes = cc.transformClass(cc.parse(bytes),
397397
* ClassTransform.transformingMethods(
398398
* MethodTransform.transformingCode(
399399
* fooToBar.andThen(instrumentCalls))));

0 commit comments

Comments
 (0)