code: @Override public Date parse(String str, ParsePosition pos)
     {
        Date result;
  
        if (str == null || str.trim().length() == 0)
        {
           result = null;
           pos.setIndex(-1);
        }
        else
        {
           result = parseNonNullDate(str, pos);
        }
  
        return result;
     }
docs: {@inheritDoc}