Best way to call isPresent on Java Optional

前端 未结 0 1247
野的像风
野的像风 2020-12-28 16:58

I have the following code on which sonar is throwing a check "Optional#isPresent()" before accessing value error.

private Map

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