|
|
@ -55,7 +55,7 @@ public abstract class HolidaysUtils {
|
|
|
|
return cache.get(year);
|
|
|
|
return cache.get(year);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
String URL1 = String.format(githubHolidaysURL2, year);
|
|
|
|
String URL1 = String.format(githubHolidaysURL2, year);
|
|
|
|
String URL2 = String.format(githubHolidaysURL2, year);
|
|
|
|
String URL2 = String.format(githubHolidaysURL1, year);
|
|
|
|
String defaultResponseStr = HttpUtil.get(URL1);
|
|
|
|
String defaultResponseStr = HttpUtil.get(URL1);
|
|
|
|
String secondResponseStr = HttpUtil.get(URL2);
|
|
|
|
String secondResponseStr = HttpUtil.get(URL2);
|
|
|
|
String responseStr = ObjectUtil.defaultIfBlank(defaultResponseStr, secondResponseStr);
|
|
|
|
String responseStr = ObjectUtil.defaultIfBlank(defaultResponseStr, secondResponseStr);
|
|
|
|