Javadocs and optimizations for JavaUtils