SyntaxFix
Write A Post
Hire A Developer
Questions
CollectionUtils.isNotEmpty checks if your collection is not null and not empty. This is better comparing to double check but only if you have this Apache library in your project. If you don't then use:
CollectionUtils.isNotEmpty
if(list != null && !list.isEmpty())