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

io.github.dmlloyd.classfile.extras.constant.ExtraClassDesc Maven / Gradle / Ivy

There is a newer version: 24.cr2
Show newest version
package io.github.dmlloyd.classfile.extras.constant;

import java.lang.constant.ClassDesc;
import java.util.Objects;

/**
 *
 */
public final class ExtraClassDesc {
    private ExtraClassDesc() {}

    public static ClassDesc ofInternalName(String name) {
        ConstantUtils.validateInternalClassName(Objects.requireNonNull(name));
        return ClassDesc.ofDescriptor("L" + name + ";");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy