How do I refactor code to only use one if statement?

后端 未结 0 790
生来不讨喜
生来不讨喜 2021-02-07 23:57

I need to get the enum itself first by using RegoDocumentType.getByValue(createOrderRequest.getIdDocument().getIdType())

Then check for null value, if it is

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