SOLR-5720: Java 6 compatibility change

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