2022-03-07 09:34:54 +00:00
|
|
|
package lombok.bytecode;
|
|
|
|
|
|
|
|
import org.objectweb.asm.ClassReader;
|
|
|
|
import org.objectweb.asm.ClassVisitor;
|
|
|
|
import org.objectweb.asm.MethodVisitor;
|
|
|
|
import org.objectweb.asm.Opcodes;
|
|
|
|
import org.objectweb.asm.commons.JSRInlinerAdapter;
|
2022-03-22 17:19:32 +00:00
|
|
|
/* loaded from: com.discord-120109.apk:lombok/bytecode/AsmUtil.SCL.lombok */
|
2022-03-07 09:34:54 +00:00
|
|
|
class AsmUtil {
|
|
|
|
|
|
|
|
/* renamed from: lombok.bytecode.AsmUtil$1 reason: invalid class name */
|
2022-03-22 17:19:32 +00:00
|
|
|
/* loaded from: com.discord-120109.apk:lombok/bytecode/AsmUtil$1.SCL.lombok */
|
2022-03-07 09:34:54 +00:00
|
|
|
class AnonymousClass1 extends ClassVisitor {
|
|
|
|
AnonymousClass1(int i, ClassVisitor classVisitor) {
|
|
|
|
super(i, classVisitor);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // org.objectweb.asm.ClassVisitor
|
|
|
|
public MethodVisitor visitMethod(int i, String str, String str2, String str3, String[] strArr) {
|
|
|
|
return new JSRInlinerAdapter(super.visitMethod(i, str, str2, str3, strArr), i, str, str2, str3, strArr);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
private AsmUtil() {
|
|
|
|
throw new UnsupportedOperationException();
|
|
|
|
}
|
|
|
|
|
|
|
|
static byte[] fixJSRInlining(byte[] bArr) {
|
|
|
|
ClassReader classReader = new ClassReader(bArr);
|
|
|
|
FixedClassWriter fixedClassWriter = new FixedClassWriter(classReader, 0);
|
|
|
|
classReader.accept(new AnonymousClass1(Opcodes.ASM7, fixedClassWriter), 0);
|
|
|
|
return fixedClassWriter.toByteArray();
|
|
|
|
}
|
|
|
|
}
|