private Calendar estimateYear(final String dateString) {
        final Calendar c = parseCalendar(dateString);
        if (approximation == DateParser.Approximation.BEFORE) {
            addYear(c);
            lastMonth(c);
            endOfMonth(c);
        } else if (approximation == DateParser.Approximation.AFTER) {
            subtractYear(c);
            firstMonth(c);
            beginOfMonth(c);
        }
        return c;
    }
private Calendar estimateYear ( final String dateString ) { final Calendar c = parseCalendar ( dateString ) ; if ( approximation == DateParser . Approximation . BEFORE ) { addYear ( c ) ; lastMonth ( c ) ; endOfMonth ( c ) ; } else if ( approximation == DateParser . Approximation . AFTER ) { subtractYear ( c ) ; firstMonth ( c ) ; beginOfMonth ( c ) ; } return c ; }
@param dateString input date string
@return adjusted date