HBASE-12062 Fix usage of Collections.toArray
HBASE-12024 Fix javadoc warning.