Clean-up.
- use imports
- fix Java 8 Javadoc issues

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1646178 13f79535-47bb-0310-9956-ffa450edef68
svn:eol-style=native

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1646220 13f79535-47bb-0310-9956-ffa450edef68
Simplify. NioChannel.getAttachment(boolean) was only ever called with a parameter of false.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1646302 13f79535-47bb-0310-9956-ffa450edef68
Use the provided atomic method to replace the attachment and return a reference to the old value rather than doing the same thing in a thread unsafe manner.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1646303 13f79535-47bb-0310-9956-ffa450edef68
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=57340
Ensure that Socket and SocketWrapper are only returned to the cache once on socket close (it is possible for multiple threads to call close concurrently).

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1646304 13f79535-47bb-0310-9956-ffa450edef68
Remove unused code.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1646348 13f79535-47bb-0310-9956-ffa450edef68
Remove deprecated code highlighted as unused by UCDetector

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1646349 13f79535-47bb-0310-9956-ffa450edef68
Header size is a constant.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1646355 13f79535-47bb-0310-9956-ffa450edef68
Header size is a constant (fix the test as well)

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1646356 13f79535-47bb-0310-9956-ffa450edef68
Remove code highlighted as unused by UCDetector

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1646357 13f79535-47bb-0310-9956-ffa450edef68
Remove code highlighted as unused by UCDetector

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1646359 13f79535-47bb-0310-9956-ffa450edef68
Provide the correct array size when invoking toArray()

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1646420 13f79535-47bb-0310-9956-ffa450edef68
Remove unused method

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1646448 13f79535-47bb-0310-9956-ffa450edef68
Servlet API requires java.security.cert.X509Certificate[] so be explicit about this in the support class.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1646449 13f79535-47bb-0310-9956-ffa450edef68
Remove unused method spotted by kfujino

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1646470 13f79535-47bb-0310-9956-ffa450edef68
kfujino review of  BZ 57338 fix.
Need to replicate updates to SSOEntry

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1646471 13f79535-47bb-0310-9956-ffa450edef68
kfujino review of  BZ 57338 fix.
Add configuration options for mapSendOptions and terminateOnStartFailure.
Document the configuration options.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1646476 13f79535-47bb-0310-9956-ffa450edef68