com.googlecode.d2j.dex.LambadaNameSafeClassAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle Show documentation
Show all versions of gradle Show documentation
fakeradnroid gradle builder
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('-', '_');
}
});
}
}