Skip to content

Commit 7f6f802

Browse files
juzi214032colorful3
authored andcommitted
refactor(LoggerImpl): 删除多余的正则符号
1 parent 916fc12 commit 7f6f802

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/main/java/io/github/talelin/latticy/common/interceptor/LoggerImpl.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ public class LoggerImpl implements LoggerResolver {
2828
@Autowired
2929
private LogService logService;
3030

31-
public static String REG_XP = "(?<=\\{)[^}]*(?=\\})";
32-
33-
private Pattern pattern = Pattern.compile(REG_XP);
31+
private static final Pattern pattern = Pattern.compile("(?<=\\{)[^}]*(?=})");
3432

3533

3634
@Override

0 commit comments

Comments
 (0)