Skip to content

Commit b4a7d53

Browse files
author
liaochong
committed
version to 3.9.9
1 parent 2d09725 commit b4a7d53

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

example/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<dependency>
4444
<groupId>com.github.liaochong</groupId>
4545
<artifactId>myexcel</artifactId>
46-
<version>3.9.8</version>
46+
<version>3.9.9</version>
4747
</dependency>
4848
<dependency>
4949
<groupId>org.freemarker</groupId>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<groupId>com.github.liaochong</groupId>
1313
<artifactId>myexcel</artifactId>
14-
<version>3.9.8</version>
14+
<version>3.9.9</version>
1515
<packaging>jar</packaging>
1616

1717
<name>myexcel</name>

src/main/java/com/github/liaochong/myexcel/core/style/BorderStyle.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717

1818
import org.apache.poi.ss.usermodel.CellStyle;
1919

20-
import java.util.*;
20+
import java.util.ArrayList;
21+
import java.util.Arrays;
22+
import java.util.HashMap;
23+
import java.util.List;
24+
import java.util.Map;
2125
import java.util.regex.Matcher;
2226
import java.util.regex.Pattern;
2327
import java.util.stream.Collectors;
@@ -51,14 +55,14 @@ public static void setBorder(CellStyle cellStyle, Map<String, String> tdStyle) {
5155
if (tdStyle == null) {
5256
return;
5357
}
54-
tdStyle = new HashMap<>(tdStyle);
5558
String borderStyle = tdStyle.get(BORDER_STYLE);
5659
if (borderStyle != null) {
5760
Matcher matcher = BORDER_PATTERN.matcher(borderStyle);
5861
List<String> styles = new ArrayList<>();
5962
while (matcher.find()) {
6063
styles.add(matcher.group());
6164
}
65+
tdStyle = new HashMap<>(tdStyle);
6266
if (styles.size() == 1) {
6367
tdStyle.put(BORDER_TOP_STYLE, styles.get(0));
6468
tdStyle.put(BORDER_RIGHT_STYLE, styles.get(0));

0 commit comments

Comments
 (0)