fix: do not use the original class name as patch name

This commit is contained in:
zaaarf 2023-04-17 00:14:48 +02:00
parent a259d844a3
commit 999f0500c7
No known key found for this signature in database
GPG key ID: 82240E075E31FA4C

View file

@ -348,7 +348,7 @@ public class LilleroProcessor extends AbstractProcessor {
.superclass(cl.asType())
.addSuperinterface(ClassName.get(IInjector.class))
.addMethod(constructorBuilder.build())
.addMethod(buildStringReturnMethod("name", cl.getSimpleName().toString()))
.addMethod(buildStringReturnMethod("name", injName))
.addMethod(buildStringReturnMethod("reason", toGenerate.get(injName).reason))
.addMethod(buildStringReturnMethod("targetClass", obfuscateInjectorMetadata ? targetClass.fqnObf : targetClass.fqn))
.addMethod(buildStringReturnMethod("methodName", obfuscateInjectorMetadata ? target.nameObf : target.name))