8231161: Wrong return type in code sample in Collector API documentation
Summary: Correct declaration of container from R to A and add compilation test
Reviewed-by: smarks, lancea
Welcome to the JDK!
===================
For information about building the JDK, including how to retrieve all
of the source code, please see either of these files:
* doc/building.html (html version)
* doc/building.md (markdown version)
See http://openjdk.java.net/ for more information about the OpenJDK
Community and the JDK.