Passing MethodHandles.lookup().lookupClass() vs passing Class<?> to getLogger method

后端 未结 0 988
执笔经年
执笔经年 2020-12-03 05:44

I recently came across a logger declared as below:

private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题