Provide variations of Assert.noNullElements that accepts a Collection or Map [SPR-8760] #13403
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: declined
A suggestion or change that we don't feel we should currently apply
type: enhancement
A general enhancement
Gunnar Hillert opened SPR-8760 and commented
Currently there is an Assert.noNullElements method, but it currently accepts only an array, not a Collection. In order to provide better null checking it would be nice to have applicable methods that also accept Collections and Maps as parameters.
Also, for arrays the following Note applies: "Does not complain if the array is empty!". However, it would be nice if for maps and collections we have a method that checks for all null/empty conditions and ensures that the passed in Map/Collection is:
Affects: 3.1 RC1
1 votes, 2 watchers
The text was updated successfully, but these errors were encountered: