package com.gmail.woodyc40.commons.reflection.asm;

import java.util.HashMap;
import java.util.Map;

public class Primitives {
    private static final Map<Class<?>, String> DESC_MAP = new HashMap<>();

    static {
        DESC_MAP.put(boolean.class, "Z");
        DESC_MAP.put(byte.class, "B");
        DESC_MAP.put(char.class, "C");
        DESC_MAP.put(double.class, "D");
        DESC_MAP.put(float.class, "F");
        DESC_MAP.put(int.class, "I");
        DESC_MAP.put(long.class, "J");
        DESC_MAP.put(short.class, "S");

        DESC_MAP.put(void.class, "V");
    }

    public static String getDesc(Class<?> primitive) {
        return DESC_MAP.get(primitive);
    }
}

@@ -98,33 +98,227 @@
 p;%0A%0A
-public class Primitives %7B
+/**%0A * Utility to get JVM letter representations for primitives%0A * %0A * @author AgentTroll%0A * @version 1.0%0A */ %0Apublic class Primitives %7B%0A    private Primitives() %7B%7D%0A    %0A    /**%0A     * The primitive descriptors%0A     */ 
 %0A   
@@ -768,16 +768,312 @@
 %0A    %7D%0A%0A
+    /**%0A     * Gets the descriptor associated with the primitive type%0A     * %0A     * @param primitive the %3Ccode%3Eclass%3C/code%3E representing a primitive type%0A     * @return the JVM descriptor for the primitive, or %3Ccode%3Enull%3C/code%3E if %0A     *         not registered or not a primitive type%0A     */ %0A
     publ

Update Primitives.java