neo4j/neo4j-documentation

String passed to `newEmbeddedDatabase` in example and JavaDoc

eenblam opened this issue · 0 comments

The embedded tutorial and the GraphDatabaseService JavaDoc both claim that GraphDatabaseFactory.newEmbeddedDatabase() accepts a path, but it seems to expect a File.

graphDb = new GraphDatabaseFactory().newEmbeddedDatabase( DB_PATH );
registerShutdownHook( graphDb );

DB_PATH is indeed updated to File in the source, but the JavaDoc linked above actually uses a string literal:

GraphDatabaseService graphDb = new GraphDatabaseFactory().newEmbeddedDatabase( "var/graphDb" );
/ ... use Neo4j
raphDb.shutdown();