All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.d2j.dex.LambadaNameSafeClassAdapter Maven / Gradle / Ivy

There is a newer version: 1.0.38
Show 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