We only support Java 8 and later now, so these conditions are not necessary.
I'm thinking about ElasticsearchJavaTimeBridgeProvider in particular, but there may be other classes with similar hacks.