artembilan/spring-integration — comment on commit 6707bc6ed751f83645a5954de180304c42dc8825
File: spring-integration-core/src/main/java/org/springframework/integration/config/xml/HeaderEnricherParserSupport.java line 140
By olegz:

Right, but instead you can use on of the utility classes CollectionUtils.isEmpty(..) which basically returns false if its null or empty.

Simpler in this context means more readable ;)