LUCENE-5946: fix incorrect javadocs link

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1624879 13f79535-47bb-0310-9956-ffa450edef68
LUCENE-5945: fix test bug, ensure 'dir' is always closed

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