Skip to content

Commit

Permalink
Create 不规范日志实践:记录器不清楚静态Final
Browse files Browse the repository at this point in the history
  • Loading branch information
wooyunwang authored Dec 31, 2019
1 parent cb332cf commit a4de962
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 不规范日志实践:记录器不清楚静态Final
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
声明记录器是固定且最终的。
<b>例 2:</b> 例 1 中的代码应该用以下方式重写:
<pre>
private final static Logger logger =
Logger.getLogger(MyClass.class);
</pre>

0 comments on commit a4de962

Please sign in to comment.