Browse Source

修改代码规约

pull/2077/head
Jiaju Zhuang 3 years ago
parent
commit
0bdabebe5c
  1. 3
      src/main/java/com/alibaba/excel/util/PositionUtils.java

3
src/main/java/com/alibaba/excel/util/PositionUtils.java

@ -14,6 +14,7 @@ public class PositionUtils {
private static final Pattern CELL_REF_PATTERN = Pattern.compile("(\\$?[A-Z]+)?" + "(\\$?[0-9]+)?",
Pattern.CASE_INSENSITIVE);
private static final char SHEET_NAME_DELIMITER = '!';
private static final char REDUNDANT_CHARACTERS = '$';
private PositionUtils() {}
@ -63,7 +64,7 @@ public class PositionUtils {
}
String col = matcher.group(1);
if (col.length() > 0 && col.charAt(0) == '$') {
if (col.length() > 0 && col.charAt(0) == REDUNDANT_CHARACTERS) {
col = col.substring(1);
}
if (col.length() == 0) {

Loading…
Cancel
Save