Skip to content

Fix JavaDoc on JDK 11. #702

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion driver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,17 @@
<sourceFileIncludes>
<sourceFileInclude>org/neo4j/driver/**/*.java</sourceFileInclude>
</sourceFileIncludes>
<excludePackageNames>org.neo4j.driver.internal</excludePackageNames>
<excludePackageNames>org.neo4j.driver.internal</excludePackageNames>
<bottom>
<![CDATA[
<script>
if (typeof useModuleDirectories !== 'undefined') {
useModuleDirectories = false;
}
</script>
]]>
</bottom>
<additionalJOption>--allow-script-in-comments</additionalJOption>
</configuration>
</plugin>
<plugin>
Expand Down
4 changes: 2 additions & 2 deletions driver/src/main/javadoc/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ <h3>Example</h3>
// and makes handling errors much easier.
// Use `session.writeTransaction` for writes and `session.readTransaction` for reading data.
// These methods are also able to handle connection problems and transient errors using an automatic retry mechanism.
session.writeTransaction(tx -> tx.run("MERGE (a:Person {name: $x})", parameters("x", name)));
session.writeTransaction(tx -&gt; tx.run("MERGE (a:Person {name: $x})", parameters("x", name)));
}
}

private void printPeople(String initial)
{
try (Session session = driver.session())
{
// A Managed Transaction transactions are a quick and easy way to wrap a Cypher Query.
// A Managed transaction is a quick and easy way to wrap a Cypher Query.
// The `session.run` method will run the specified Query.
// This simpler method does not use any automatic retry mechanism.
Result result = session.run(
Expand Down