Is StringUtils.EMPTY recommended?

后端 未结 11 1935
情深已故
情深已故 2020-12-08 01:46

Do you use StringUtils.EMPTY instead of \"\"?

I mean either as a return value or if you set a the value of a String variable. I don\'t mean

11条回答
  •  遥遥无期
    2020-12-08 02:19

    Honestly, I don't see much use of either. If you want to compare egainst an empty string, just use StringUtils.isNotEmpty(..)

提交回复
热议问题