Skip to content

Commit

Permalink
Small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
burqen committed Mar 22, 2018
1 parent a8c8acc commit 5e5470f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -167,17 +167,17 @@ public static <T, E extends Exception> void forAll( ThrowingConsumer<T,E> consum
} }
} }


static void validateSelectorInstances( Object[] instances, int... notNullIndex ) static void validateSelectorInstances( Object[] instances, int... aliveIndex )
{ {
for ( int i = 0; i < instances.length; i++ ) for ( int i = 0; i < instances.length; i++ )
{ {
boolean expected = PrimitiveIntCollections.contains( notNullIndex, i ); boolean expected = PrimitiveIntCollections.contains( aliveIndex, i );
boolean actual = instances[i] != IndexProvider.EMPTY; boolean actual = instances[i] != IndexProvider.EMPTY;
if ( expected != actual ) if ( expected != actual )
{ {
throw new IllegalArgumentException( throw new IllegalArgumentException(
String.format( "Only indexes expected to be separated from IndexProvider.EMPTY are %s but was %s", String.format( "Only indexes expected to be separated from IndexProvider.EMPTY are %s but was %s",
Arrays.toString( notNullIndex ), Arrays.toString( instances ) ) ); Arrays.toString( aliveIndex ), Arrays.toString( instances ) ) );
} }
} }
} }
Expand Down
Expand Up @@ -33,7 +33,7 @@


/** /**
* Selector for "lucene+native-2.x". * Selector for "lucene+native-2.x".
* Separates strings, numbers, temoporal and spatial into native index. * Separates strings, numbers, temporal and spatial into native index.
*/ */
public class FusionSelector20 implements FusionIndexProvider.Selector public class FusionSelector20 implements FusionIndexProvider.Selector
{ {
Expand Down

0 comments on commit 5e5470f

Please sign in to comment.