Fix ConcurrentReferenceHashMap max constraints

Update calculateShift to respect the maximum upper bound as well as the
minimum value.

Issue: SPR-11720
Merge pull request #513 from HejiaHo/master

* pull513:
  Fix ConcurrentReferenceHashMap max constraints
Polish static resource handling mechanism

- ResourceResolver and ResourceResolverChain now have a consistent API
  with regard to method names and terminology.

- ResourceResolver and ResourceResolverChain now accept
  List<? extends Resource> instead of List<Resource> for simplified
  programmatic use.

- Improved Javadoc across the package.

- Formatted code to align with standards.

- Removed all references to ResourceUrlPathTranslator.

Issue: SPR-10933
Update Javadoc for PublicResourceUrlProvider
AnnotationTypeFilter prevents ASM-based loading of java.* interfaces as well

Issue: SPR-11719
considerInterfaces should work without considerInherited as well

Issue: SPR-11719
Polishing
ShallowEtagHeaderFilter writes body early on sendError/sendRedirect and interprets setContentLength/setBufferSize as a hint for capacity increase

Issue: SPR-11705
Issue: SPR-11717