Home > Back-end >  Assert the STR.=null; And the if (! StringUtils. IsEmpty (STR)) what is the difference between {}
Assert the STR.=null; And the if (! StringUtils. IsEmpty (STR)) what is the difference between {}

Time:02-27

Assert the STR.=null; And the if (! StringUtils. IsEmpty (STR)) what is the difference between {}

CodePudding user response:

Assert failure process abnormal exit, if went on, according to the code logic, assert the purpose is to debug program, not to reproduce in the code to use!

CodePudding user response:

IsEmpty point in you can see, it checks if the string length and null

CodePudding user response:

Do not use to assert the

CodePudding user response:

reference 3 floor wang QQ reply:
do not use to assert the

CodePudding user response:

Assert less is used in the development, there is a problem generally the debug to troubleshoot. If is the logic code
  • Related