March 2018
Intermediate to advanced
276 pages
7h 11m
English
Here are the solutions to the exercises in Chapter 10, An Extra Team Member: Predictive and Proactive Analyses.
The top hotspots at the function level, unlockAccept and addSslHostConfig, are both rather complex. One way to counter the complexity accumulation would be to introduce chunks as discussed in Turn Hotspot Methods into Brain-Friendly Chunks.
The recent changes in AbstractEndpoint.java seems to have been an extension of addSslHostConfig that gives the method the additional responsibility of replacing an existing host configuration. This also introduces some control coupling, as shown in the next code snippet:
| | public void addSslHostConfig( |
| | SSLHostConfig sslHostConfig, ... |