Skip to content

Commit

Permalink
v1.2.2 修正2016年国庆节数据;删除5月23日世界读书日;修复v1.2.0和v1.2.1的重大bug。
Browse files Browse the repository at this point in the history
  • Loading branch information
6tail committed May 23, 2021
1 parent 5a5b0da commit dffee26
Show file tree
Hide file tree
Showing 14 changed files with 250 additions and 189 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ lunar是一款无第三方依赖的公历(阳历)和农历(阴历、老黄历)
<dependency>
<groupId>cn.6tail</groupId>
<artifactId>lunar</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ lunar is a calendar library for Solar and Chinese Lunar.
<dependency>
<groupId>cn.6tail</groupId>
<artifactId>lunar</artifactId>
<version>1.2.1</version>
<version>1.2.2</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>cn.6tail</groupId>
<artifactId>lunar</artifactId>
<packaging>jar</packaging>
<version>1.2.1</version>
<version>1.2.2</version>
<name>${project.groupId}:${project.artifactId}</name>
<url>https://github.com/6tail/lunar-java</url>
<description>a calendar library for Solar and Chinese Lunar</description>
Expand Down
18 changes: 7 additions & 11 deletions src/main/java/com/nlf/calendar/JieQi.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.nlf.calendar;

import com.nlf.calendar.util.LunarUtil;

/**
* 节气
*
Expand Down Expand Up @@ -48,15 +46,13 @@ public String getName() {
*/
public void setName(String name) {
this.name = name;
for(String key: LunarUtil.JIE){
if(key.equals(name)){
this.jie = true;
return;
}
}
for(String key: LunarUtil.QI){
if(key.equals(name)){
this.qi = true;
for(int i=0,j=Lunar.JIE_QI.length;i<j;i++){
if(name.equals(Lunar.JIE_QI[i])){
if(i%2==0){
this.qi = true;
}else{
this.jie = true;
}
return;
}
}
Expand Down
Loading

0 comments on commit dffee26

Please sign in to comment.