public static AnnotationValue createValue(ConstPool constPool, String name, Object value) { Class<?> type = value.getClass(); if (type == String.class) { return new StringAnnotationValue(constPool, name, (String) value); } else if (type == int.class || type == Integer.class) { return new IntAnnotationValue(constPool, name, (Integer) value);
public static AnnotationValue createValue(ConstPool constPool, String name, Object value) { Class<?> type = value.getClass(); if (type == String.class) { return new StringAnnotationValue(constPool, name, (String) value); } else if (type == int.class || type == Integer.class) { return new IntAnnotationValue(constPool, name, (Integer) value);
public static AnnotationValue createValue(ConstPool constPool, String name, Object value) { Class<?> type = value.getClass(); if (type == String.class) { return new StringAnnotationValue(constPool, name, (String) value); } else if (type == int.class || type == Integer.class) { return new IntAnnotationValue(constPool, name, (Integer) value);
public static AnnotationValue createValue(ConstPool constPool, String name, Object value) { Class<?> type = value.getClass(); if (type == String.class) { return new StringAnnotationValue(constPool, name, (String) value); } else if (type == int.class || type == Integer.class) { return new IntAnnotationValue(constPool, name, (Integer) value);
public static AnnotationValue createValue(ConstPool constPool, String name, Object value) { Class<?> type = value.getClass(); if (type == String.class) { return new StringAnnotationValue(constPool, name, (String) value); } else if (type == int.class || type == Integer.class) { return new IntAnnotationValue(constPool, name, (Integer) value);