Utilities { @Deprecated public static Day julianEaster2(int year, boolean gregorian) { int g = year % 19; int i = (19 * g + 15) % 30; int j = (year + year / 4 + i) % 7; int l = i - j; int month = 3 + (l + 40) / 44; int day = l + 28 - 31 * (month / 4); Day easter = new Day(year, Month.valueOf(month - 1), day - 1); if (gregorian) { return easter.plus(13); } else { return easter; } }  static int[] daysCount(TsDomain domain); static int[] daysCount(TsDomain domain, DayOfWeek day); static Day easter(int y); static Day easter2(int y); @Deprecated static Day julianEaster(int year, boolean gregorian); @Deprecated static Day julianEaster2(int year, boolean gregorian); static int julianDate2JDN(int year, int month, int day); static int gregorianDate2JDN(int year, int month, int day); static Day JDN2GregorianDate(int jdn); static Day julianEaster3(int year, boolean gregorian); static Day firstWeekDay(DayOfWeek day, int year, Month month); static int[] lastDay(TsDomain domain); static void leapYear(TsPeriod start, DataBlock buffer); static void lengthofPeriod(TsPeriod start, DataBlock buffer); static double logJacobian(LengthOfPeriodType kind, TsDomain domain,
            boolean back); @Deprecated static int[][] tradingDays(TsDomain domain); static int[][] tdCount(TsDomain domain); static void transform(LengthOfPeriodType kind, TsData tsdata,
            boolean back); static double probJulianEaster(int pos); static double probEaster(int pos); static final double LUNARY; }
@Test public void testJulianEaster2() { for (int i = 2000; i < 2100; ++i) { assertTrue(Utilities.julianEaster(i, true).getDayOfWeek() == DayOfWeek.Sunday); } }