32
32
import java .util .function .Function ;
33
33
34
34
import java .lang .classfile .attribute .ModuleAttribute ;
35
- import java .lang .classfile .attribute .UnknownAttribute ;
36
35
import java .lang .classfile .constantpool .ClassEntry ;
37
36
import java .lang .classfile .constantpool .ConstantPoolBuilder ;
38
37
import java .lang .classfile .constantpool .Utf8Entry ;
@@ -435,15 +434,15 @@ default void buildModuleTo(Path path,
435
434
* This method behaves as if:
436
435
* {@snippet lang=java :
437
436
* this.build(model.thisClass(), ConstantPoolBuilder.of(model),
438
- * b -> b .transform(model, transform));
437
+ * clb -> clb .transform(model, transform));
439
438
* }
440
439
*
441
440
* @param model the class model to transform
442
441
* @param transform the transform
443
442
* @return the bytes of the new class
444
443
*/
445
- default byte [] transform (ClassModel model , ClassTransform transform ) {
446
- return transform (model , model .thisClass (), transform );
444
+ default byte [] transformClass (ClassModel model , ClassTransform transform ) {
445
+ return transformClass (model , model .thisClass (), transform );
447
446
}
448
447
449
448
/**
@@ -458,8 +457,8 @@ default byte[] transform(ClassModel model, ClassTransform transform) {
458
457
* @param transform the transform
459
458
* @return the bytes of the new class
460
459
*/
461
- default byte [] transform (ClassModel model , ClassDesc newClassName , ClassTransform transform ) {
462
- return transform (model , TemporaryConstantPool .INSTANCE .classEntry (newClassName ), transform );
460
+ default byte [] transformClass (ClassModel model , ClassDesc newClassName , ClassTransform transform ) {
461
+ return transformClass (model , TemporaryConstantPool .INSTANCE .classEntry (newClassName ), transform );
463
462
}
464
463
465
464
/**
@@ -473,15 +472,15 @@ default byte[] transform(ClassModel model, ClassDesc newClassName, ClassTransfor
473
472
* This method behaves as if:
474
473
* {@snippet lang=java :
475
474
* this.build(newClassName, ConstantPoolBuilder.of(model),
476
- * b -> b .transform(model, transform));
475
+ * clb -> clb .transform(model, transform));
477
476
* }
478
477
*
479
478
* @param model the class model to transform
480
479
* @param newClassName new class name
481
480
* @param transform the transform
482
481
* @return the bytes of the new class
483
482
*/
484
- byte [] transform (ClassModel model , ClassEntry newClassName , ClassTransform transform );
483
+ byte [] transformClass (ClassModel model , ClassEntry newClassName , ClassTransform transform );
485
484
486
485
/**
487
486
* Verify a classfile. Any verification errors found will be returned.
0 commit comments