提交 0bdabebe 编写于 作者: 庄家钜's avatar 庄家钜

修改代码规约

上级 a17a5682
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册