Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
burqen committed Jun 21, 2017
1 parent 909a73d commit 733f482
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
Expand Up @@ -109,5 +109,6 @@ public void close() throws IOException
}
accessors.clear();
onlineIndexRules.clear();
notOnlineIndexRules.clear();
}
}
Expand Up @@ -158,7 +158,7 @@ interface SchemaConsistencyReport extends ConsistencyReport
void unsupportedSchemaRuleKind( SchemaRule.Kind kind );

@Warning
@Documented( "The schema rule contained in the DynamicRecord chain a reference to a schema rule that is not online. It will be rebuilt on next startup." )
@Documented( "The schema rule contained in the DynamicRecord chain has a reference to a schema rule that is not online." )
void schemaRuleNotOnline( SchemaRule schemaRule );
}

Expand Down
Expand Up @@ -253,22 +253,12 @@ public void shouldReportMissingSchemaIndex() throws Exception

private File findFile( String targetFile, File directory )
{
File foundFile = null;
boolean didFindFile = false;
for ( File file : directory.listFiles() )
{
if ( file.getName().equals( targetFile ) )
{
foundFile = file;
didFindFile = true;
break;
}
}
if ( !didFindFile )
File file = new File( directory, targetFile );
if ( !file.exists() )
{
fail( "Could not find file " + targetFile );
}
return foundFile;
return file;
}

private GraphDatabaseService getGraphDatabaseService()
Expand Down

0 comments on commit 733f482

Please sign in to comment.