1
0
mirror of synced 2026-10-26 00:16:11 +08:00

v1.2.22 新增万圣节、万圣节前夜;新增全国中小学生安全教育日;新增春社(原二月初二春社改为社日节)、秋社;优化代码。

This commit is contained in:
6tail
2022-04-25 21:53:01 +08:00
parent 9756d126d2
commit 3415fc04a4
28 changed files with 197 additions and 100 deletions

View File

@@ -14,11 +14,11 @@ public class SolarHalfYear {
/**
* 年
*/
private int year;
private final int year;
/**
* 月
*/
private int month;
private final int month;
/**
* 半年的月数
@@ -124,7 +124,6 @@ public class SolarHalfYear {
* @param halfYears 推移的半年数,负数为倒推
* @return 推移后的半年
*/
@SuppressWarnings("MagicConstant")
public SolarHalfYear next(int halfYears) {
if (0 == halfYears) {
return new SolarHalfYear(year, month);