Skip to content

Commit

Permalink
Method rename
Browse files Browse the repository at this point in the history
indexRule.isNotValidatedIndexConstraint -> indexRule.isIndexWithoutOwningConstraint
  • Loading branch information
MishaDemianenko committed Apr 5, 2018
1 parent 0123711 commit d4c8bc0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -59,7 +59,7 @@ public IndexAccessors( IndexProviderMap providers,
// - populating indexes will be rebuilt on next startup // - populating indexes will be rebuilt on next startup
// - failed indexes have to be dropped by the user anyways // - failed indexes have to be dropped by the user anyways
IndexRule indexRule = rules.next(); IndexRule indexRule = rules.next();
if ( indexRule.isNotValidatedIndexConstraint() ) if ( indexRule.isIndexWithoutOwningConstraint() )
{ {
notOnlineIndexRules.add( indexRule ); notOnlineIndexRules.add( indexRule );
} }
Expand Down
Expand Up @@ -114,7 +114,7 @@ public Long getOwningConstraint()
return owningConstraint; return owningConstraint;
} }


public boolean isNotValidatedIndexConstraint() public boolean isIndexWithoutOwningConstraint()
{ {
return canSupportUniqueConstraint() && getOwningConstraint() == null; return canSupportUniqueConstraint() && getOwningConstraint() == null;
} }
Expand Down
Expand Up @@ -85,7 +85,7 @@ public void detectUniqueIndexWithoutOwningConstraint()
SchemaIndexDescriptor descriptor = uniqueForLabel( LABEL_ID, PROPERTY_ID_1 ); SchemaIndexDescriptor descriptor = uniqueForLabel( LABEL_ID, PROPERTY_ID_1 );
IndexRule indexRule = IndexRule.indexRule( RULE_ID, descriptor, PROVIDER_DESCRIPTOR ); IndexRule indexRule = IndexRule.indexRule( RULE_ID, descriptor, PROVIDER_DESCRIPTOR );


assertTrue( indexRule.isNotValidatedIndexConstraint() ); assertTrue( indexRule.isIndexWithoutOwningConstraint() );
} }


private void assertEqualityByDescriptor( SchemaIndexDescriptor descriptor ) private void assertEqualityByDescriptor( SchemaIndexDescriptor descriptor )
Expand Down

0 comments on commit d4c8bc0

Please sign in to comment.