SOLR-1301: Fix compilation for Java 8 (the Java 8 compiler is more picky, but it's not a Java 8 regression: the code was just wrong)

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