feiniaojin / graceful-response

Spring Boot接口响应处理解决方案,提供统一返回值封装、全局异常处理、自定义异常错误码、参数校验增强、断言增强等功能
https://doc.feiniaojin.com
MIT License
1.12k stars 171 forks source link

code improve:make logger final #34

Closed changzheng0101 closed 11 months ago

changzheng0101 commented 11 months ago

这里logger 弄成final的会不会好一点?

feiniaojin commented 11 months ago

您好,这个地方的调整,有性能测试报告嘛?

changzheng0101 commented 10 months ago

我有查看了相关资料 好像最佳实践应该声明为 static final 您感觉改为static final 如何 ❓ 参考资料: https://stackoverflow.com/questions/6653520/why-do-we-declare-loggers-static-final https://vulncat.fortify.com/en/detail?id=desc.structural.java.poor_logging_practice_logger_is_not_declared_static_final