Description
the method ResourceUtil.getValueMap(<Resource>) is deprecated since rev. 1577527 (in context of SLING-3453/SLING-3451) referring to Resource.getValueMap().
but these two methods are not fully equivalent from a convenience perspective: ResourceUtil.getValueMap supports returning an empty map if the resource is null, while for the Resource.getValueMap() an explicit null check and returning an empty map has to be implemented by the caller, which is too much boilerplate code.
the simplest solution would be to just undeprecate it. patch attached.
Attachments
Attachments
Issue Links
- relates to
-
SLING-988 [PATCH] ResourceUtil.getValueMap() causes NPE
- Closed