Was this actually needed for you, or is it from Java 1.6 times? Anyway, no need to further extend this pull request, as I'll try to merge this soon. For any further optimizations new pull requests can be used.