Skip to content

Commit 67a4c4d

Browse files
committed
refactor(core): 将logger变量声明为final
- 修改logger变量为不可变的final类型 - 提高代码的可读性和安全性 - 避免意外重新赋值的可能性 - 符合Java最佳实践标准 - 确保日志记录器在类中的唯一性 - 增强代码维护性与稳定性
1 parent 3ee773e commit 67a4c4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xxl-job-executor-samples/xxl-job-executor-sample-frameless/src/main/java/com/xxl/job/executor/sample/frameless/XxlJobFramelessApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* @author xuxueli 2018-10-31 19:05:43
1111
*/
1212
public class XxlJobFramelessApplication {
13-
private static Logger logger = LoggerFactory.getLogger(XxlJobFramelessApplication.class);
13+
private static final Logger logger = LoggerFactory.getLogger(XxlJobFramelessApplication.class);
1414

1515
public static void main(String[] args) {
1616

0 commit comments

Comments
 (0)