com.googlecode.d2j.dex.LambadaNameSafeClassAdapter Maven / Gradle / Ivy
The newest version!
package com.googlecode.d2j.dex;
import org.objectweb.asm.ClassVisitor;
import org.objectweb.asm.commons.Remapper;
import org.objectweb.asm.commons.RemappingClassAdapter;
public class LambadaNameSafeClassAdapter extends RemappingClassAdapter {
public String getClassName() {
return remapper.mapType(className);
}
public LambadaNameSafeClassAdapter(ClassVisitor cv) {
super(cv, new Remapper() {
@Override
public String mapType(String type) {
if (type == null) {
return null;
}
return type.replace('-', '_');
}
});
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy