@ -378,7 +378,7 @@ public final class plasmaWordIndex {
public static final int RL_ASSORTMENTS = 2 ;
public static final int RL_ASSORTMENTS = 2 ;
public static final int RL_WORDFILES = 3 ;
public static final int RL_WORDFILES = 3 ;
public synchronized TreeSet wordHash es ( String startHash , int resourceLevel , boolean rot , int count ) throws IOException {
public synchronized TreeSet wordHash Set ( String startHash , int resourceLevel , boolean rot , int count ) throws IOException {
kelondroOrder hashOrder = ( kelondroOrder ) indexOrder . clone ( ) ;
kelondroOrder hashOrder = ( kelondroOrder ) indexOrder . clone ( ) ;
hashOrder . rotate ( startHash . getBytes ( ) ) ;
hashOrder . rotate ( startHash . getBytes ( ) ) ;
TreeSet hashes = new TreeSet ( hashOrder ) ;
TreeSet hashes = new TreeSet ( hashOrder ) ;
@ -540,7 +540,7 @@ public final class plasmaWordIndex {
URL url = null ;
URL url = null ;
HashSet urlHashs = new HashSet ( ) ;
HashSet urlHashs = new HashSet ( ) ;
try {
try {
Iterator wordHashIterator = wordHash es ( startHash , plasmaWordIndex . RL_WORDFILES , false , 100 ) . iterator ( ) ;
Iterator wordHashIterator = wordHash Set ( startHash , plasmaWordIndex . RL_WORDFILES , false , 100 ) . iterator ( ) ;
while ( wordHashIterator . hasNext ( ) & & run ) {
while ( wordHashIterator . hasNext ( ) & & run ) {
waiter ( ) ;
waiter ( ) ;
wordHash = ( String ) wordHashIterator . next ( ) ;
wordHash = ( String ) wordHashIterator . next ( ) ;
@ -572,7 +572,7 @@ public final class plasmaWordIndex {
}
}
if ( ! wordHashIterator . hasNext ( ) ) {
if ( ! wordHashIterator . hasNext ( ) ) {
// We may not be finished yet, try to get the next chunk of wordHashes
// We may not be finished yet, try to get the next chunk of wordHashes
TreeSet wordHashes = wordHash es ( wordHash , plasmaWordIndex . RL_WORDFILES , false , 100 ) ;
TreeSet wordHashes = wordHash Set ( wordHash , plasmaWordIndex . RL_WORDFILES , false , 100 ) ;
wordHashIterator = wordHashes . iterator ( ) ;
wordHashIterator = wordHashes . iterator ( ) ;
// Make sure we don't get the same wordhash twice, but don't skip a word
// Make sure we don't get the same wordhash twice, but don't skip a word
if ( ( wordHashIterator . hasNext ( ) ) & & ( ! wordHash . equals ( wordHashIterator . next ( ) ) ) ) {
if ( ( wordHashIterator . hasNext ( ) ) & & ( ! wordHash . equals ( wordHashIterator . next ( ) ) ) ) {