package util;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 誕生日クラス
 * @author pollseed
 *
 */
@JavaStandardVersion
public class BirthdayHelper extends DateUtils {

    /** HOW TO USE  **/
    @Deprecated
    public static void main(String[] args) {
        SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd");
        try {
            System.out.println(getAge(format.parse("19900101")));
            System.out.println(yesterday());
            System.out.println(tomorrow());
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }

    /**
     * 現在年月日から年齢を取得します.
     * @param birthday
     * @return
     */
    public static Integer getAge(final Date birthday) {
        if (birthday == null) {
            return null;
        }
        return compare(now(), birthday);
    }

}

@@ -215,417 +215,8 @@
  %7B%0A%0A
-    /** HOW TO USE  **/%0A    @Deprecated%0A    public static void main(String%5B%5D args) %7B%0A        SimpleDateFormat format = new SimpleDateFormat(%22yyyyMMdd%22);%0A        try %7B%0A            System.out.println(getAge(format.parse(%2219900101%22)));%0A            System.out.println(yesterday());%0A            System.out.println(tomorrow());%0A        %7D catch (ParseException e) %7B%0A            e.printStackTrace();%0A        %7D%0A    %7D%0A%0A
     

Update BirthdayHelper.java