how to avoid multiple null checks, if need do something after the each check

后端 未结 0 938
灰色年华
灰色年华 2020-12-08 19:08

How to avoid multiple null checks, if need do something after the each check or how best to handle these checks? java 8+

public void method(Object obj){
    i         


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