Java 类com.beust.jcommander.converters.NoConverter 实例源码

项目:ttc2017smartGrids    文件:JCommander.java   
private static <T> T tryInstantiateConverter(String optionName, Class<T> converterClass) {
    if (converterClass == NoConverter.class || converterClass == null) {
        return null;
    }
    try {
        return instantiateConverter(optionName, converterClass);
    } catch (InstantiationException | IllegalAccessException | InvocationTargetException ignore) {
        return null;
    }
}
项目:ttc2017smartGrids    文件:JCommander.java   
private static <T> T tryInstantiateConverter(String optionName, Class<T> converterClass) {
    if (converterClass == NoConverter.class || converterClass == null) {
        return null;
    }
    try {
        return instantiateConverter(optionName, converterClass);
    } catch (InstantiationException | IllegalAccessException | InvocationTargetException ignore) {
        return null;
    }
}