Here you can find the source of convertNullValue(final Class> convertType)
private static Object convertNullValue(final Class<?> convertType)
//package com.java2s; //License from project: Apache License public class Main { private static Object convertNullValue(final Class<?> convertType) { if ("byte".equals(convertType.getName())) { return (byte) 0; } else if ("short".equals(convertType.getName())) { return (short) 0; } else if ("int".equals(convertType.getName())) { return 0; } else if ("long".equals(convertType.getName())) { return 0L; } else if ("double".equals(convertType.getName())) { return 0D; } else if ("float".equals(convertType.getName())) { return 0F; } else {/*from w ww . j a va 2s. co m*/ return null; } } }