Here you can find the source of emptyToNull(String field)
private static String emptyToNull(String field)
//package com.java2s; //License from project: Apache License public class Main { private static String emptyToNull(String field) { return "".equals(field) ? null : field; }//from w ww .j a v a 2 s .c o m }