Skip to content

Commit c8aa69f

Browse files
committed
Migrate to 2023.2.3 inspection engine
1 parent 3f78d83 commit c8aa69f

38 files changed

+82
-77
lines changed

driver/src/main/java/org/neo4j/driver/Result.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
* Results are valid until the next query is run or until the end of the current transaction,
3737
* whichever comes first. To keep a result around while further queries are run, or to use a result outside the scope
3838
* of the current transaction, see {@link #list()}.
39-
*
4039
* <h2>Important note on semantics</h2>
4140
*
4241
* In order to handle very large results, and to minimize memory overhead and maximize

driver/src/main/java/org/neo4j/driver/Session.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ default void executeWriteWithoutResult(Consumer<TransactionContext> contextConsu
260260
* This version of run takes a {@link Map} of parameters. The values in the map
261261
* must be values that can be converted to Neo4j types. See {@link Values#parameters(Object...)} for
262262
* a list of allowed types.
263-
*
264263
* <h4>Example</h4>
265264
* <pre>
266265
* {@code

driver/src/main/java/org/neo4j/driver/SimpleQueryRunner.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
/**
2424
* Common interface for components that can execute Neo4j queries.
25-
*
2625
* <h2>Important notes on semantics</h2>
2726
* <p>
2827
* queries run in the same {@link QueryRunner} are guaranteed to execute in order, meaning changes made by one query will be seen by all subsequent queries in
@@ -64,7 +63,6 @@ public interface SimpleQueryRunner {
6463
* send it back as parameters.
6564
* <p>
6665
* If you are creating parameters programmatically, {@link #run(String, Map)} might be more helpful, it converts your map to a {@link Value} for you.
67-
*
6866
* <h4>Example</h4>
6967
* <pre class="doctest:QueryRunnerDocIT#parameterTest">
7068
* {@code
@@ -88,7 +86,6 @@ public interface SimpleQueryRunner {
8886
* <p>
8987
* This version of run takes a {@link Map} of parameters. The values in the map must be values that can be converted to Neo4j types. See {@link
9088
* Values#parameters(Object...)} for a list of allowed types.
91-
*
9289
* <h4>Example</h4>
9390
* <pre class="doctest:QueryRunnerDocIT#parameterTest">
9491
* {@code

driver/src/main/java/org/neo4j/driver/Value.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
* The second set of methods perform coercions to Java types (wherever possible).
5454
* For example, a common String value should be tested for using <code>isString</code>
5555
* and extracted using <code>stringValue</code>.
56-
*
5756
* <h2>Navigating a tree structure</h2>
5857
*
5958
* Because Neo4j often handles dynamic structures, this interface is designed to help

driver/src/main/java/org/neo4j/driver/async/AsyncQueryRunner.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131
/**
3232
* Asynchronous interface for components that can execute Neo4j queries.
33-
*
3433
* <h2>Important notes on semantics</h2>
3534
* <p>
3635
* Queries run in the same {@link AsyncQueryRunner} are guaranteed
@@ -62,7 +61,6 @@
6261
* While these semantics introduce some complexity, it gives the driver the ability
6362
* to handle infinite result streams (like subscribing to events), significantly lowers
6463
* the memory overhead for your application and improves performance.
65-
*
6664
* <h2>Asynchronous API</h2>
6765
* <p>
6866
* All overloads of {@link #runAsync(Query)} execute queries in async fashion and return {@link CompletionStage} of

driver/src/main/java/org/neo4j/driver/internal/async/connection/EventLoopGroupFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ private static class DriverThreadFactory extends DefaultThreadFactory {
114114
super(THREAD_NAME_PREFIX, THREAD_IS_DAEMON, THREAD_PRIORITY);
115115
}
116116

117+
@SuppressWarnings("InstantiatingAThreadWithDefaultRunMethod")
117118
@Override
118119
protected Thread newThread(Runnable r, String name) {
119120
return new DriverThread(threadGroup, r, name);

driver/src/main/java/org/neo4j/driver/internal/cluster/ClusterRoutingTable.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ public boolean isStaleFor(AccessMode mode) {
6666
return executeWithLock(
6767
tableLock.readLock(),
6868
() -> expirationTimestamp < clock.millis()
69-
|| routers.size() < MIN_ROUTERS
70-
|| mode == AccessMode.READ && readers.size() == 0
71-
|| mode == AccessMode.WRITE && writers.size() == 0);
69+
|| routers.isEmpty()
70+
|| mode == AccessMode.READ && readers.isEmpty()
71+
|| mode == AccessMode.WRITE && writers.isEmpty());
7272
}
7373

7474
@Override

driver/src/main/java/org/neo4j/driver/internal/handlers/pulln/BasicPullResponseHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ protected void state(State state) {
286286
this.state = state;
287287
}
288288

289-
enum State {
289+
protected enum State {
290290
READY_STATE {
291291
@Override
292292
void onSuccess(BasicPullResponseHandler context, Map<String, Value> metadata) {

driver/src/main/java/org/neo4j/driver/internal/messaging/common/CommonValuePacker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public final void pack(Value value) throws IOException {
9696

9797
@Override
9898
public final void pack(Map<String, Value> map) throws IOException {
99-
if (map == null || map.size() == 0) {
99+
if (map == null || map.isEmpty()) {
100100
packer.packMapHeader(0);
101101
return;
102102
}

driver/src/main/java/org/neo4j/driver/internal/messaging/request/HelloMessage.java

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,7 @@ private static Map<String, Value> buildMetadata(
9494
result.put(USER_AGENT_METADATA_KEY, value(userAgent));
9595
}
9696
if (boltAgent != null) {
97-
var boltAgentMap = new HashMap<String, String>();
98-
boltAgentMap.put(BOLT_AGENT_PRODUCT_KEY, boltAgent.product());
99-
if (boltAgent.platform() != null) {
100-
boltAgentMap.put(BOLT_AGENT_PLATFORM_KEY, boltAgent.platform());
101-
}
102-
if (boltAgent.language() != null) {
103-
boltAgentMap.put(BOLT_AGENT_LANGUAGE_KEY, boltAgent.language());
104-
}
105-
if (boltAgent.languageDetails() != null) {
106-
boltAgentMap.put(BOLT_AGENT_LANGUAGE_DETAIL_KEY, boltAgent.languageDetails());
107-
}
97+
var boltAgentMap = toMap(boltAgent);
10898
result.put(BOLT_AGENT_METADATA_KEY, value(boltAgentMap));
10999
}
110100
if (routingContext != null) {
@@ -116,4 +106,19 @@ private static Map<String, Value> buildMetadata(
116106
MessageWithMetadata.appendNotificationConfig(result, notificationConfig);
117107
return result;
118108
}
109+
110+
private static HashMap<String, String> toMap(BoltAgent boltAgent) {
111+
var boltAgentMap = new HashMap<String, String>();
112+
boltAgentMap.put(BOLT_AGENT_PRODUCT_KEY, boltAgent.product());
113+
if (boltAgent.platform() != null) {
114+
boltAgentMap.put(BOLT_AGENT_PLATFORM_KEY, boltAgent.platform());
115+
}
116+
if (boltAgent.language() != null) {
117+
boltAgentMap.put(BOLT_AGENT_LANGUAGE_KEY, boltAgent.language());
118+
}
119+
if (boltAgent.languageDetails() != null) {
120+
boltAgentMap.put(BOLT_AGENT_LANGUAGE_DETAIL_KEY, boltAgent.languageDetails());
121+
}
122+
return boltAgentMap;
123+
}
119124
}

driver/src/main/java/org/neo4j/driver/internal/summary/InternalPlan.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public int hashCode() {
9797
return result;
9898
}
9999

100-
public static final PlanCreator<Plan> EXPLAIN_PLAN =
100+
private static final PlanCreator<Plan> EXPLAIN_PLAN =
101101
(operatorType, arguments, identifiers, children, originalPlanValue) ->
102102
new InternalPlan<>(operatorType, arguments, identifiers, children);
103103

driver/src/main/java/org/neo4j/driver/internal/summary/InternalProfiledPlan.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public long time() {
8787
return time;
8888
}
8989

90-
public static final PlanCreator<ProfiledPlan> PROFILED_PLAN =
90+
private static final PlanCreator<ProfiledPlan> PROFILED_PLAN =
9191
(operatorType, arguments, identifiers, children, originalPlanValue) -> new InternalProfiledPlan(
9292
operatorType,
9393
arguments,

driver/src/main/java/org/neo4j/driver/reactive/ReactiveSession.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ default Publisher<ReactiveResult> run(String query, TransactionConfig config) {
199199
* <p>
200200
* This version of run takes a {@link Map} of parameters. The values in the map must be values that can be converted to Neo4j types. See {@link
201201
* Values#parameters(Object...)} for a list of allowed types.
202-
*
203202
* <h4>Example</h4>
204203
* <pre>
205204
* {@code
@@ -232,7 +231,6 @@ default Publisher<ReactiveResult> run(String query, Map<String, Object> paramete
232231
* <p>
233232
* Invoking this method will result in a Bolt RUN message exchange with server and the returned publisher will either emit an instance of {@link
234233
* ReactiveResult} on success or an error otherwise.
235-
*
236234
* <h4>Example</h4>
237235
* <pre>
238236
* {@code

driver/src/main/java/org/neo4j/driver/reactive/RxSession.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ default Publisher<RxTransaction> beginTransaction() {
171171
* This version of run takes a {@link Map} of parameters.
172172
* The values in the map must be values that can be converted to Neo4j types.
173173
* See {@link Values#parameters(Object...)} for a list of allowed types.
174-
*
175174
* <h4>Example</h4>
176175
* <pre>
177176
* {@code

driver/src/main/java/org/neo4j/driver/reactivestreams/ReactiveSession.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ default Publisher<ReactiveResult> run(String query, TransactionConfig config) {
199199
* <p>
200200
* This version of run takes a {@link Map} of parameters. The values in the map must be values that can be converted to Neo4j types. See {@link
201201
* Values#parameters(Object...)} for a list of allowed types.
202-
*
203202
* <h4>Example</h4>
204203
* <pre>
205204
* {@code
@@ -232,7 +231,6 @@ default Publisher<ReactiveResult> run(String query, Map<String, Object> paramete
232231
* <p>
233232
* Invoking this method will result in a Bolt RUN message exchange with server and the returned publisher will either emit an instance of {@link
234233
* ReactiveResult} on success or an error otherwise.
235-
*
236234
* <h4>Example</h4>
237235
* <pre>
238236
* {@code

driver/src/test/java/org/neo4j/driver/integration/ConnectionPoolIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ public void run() {
233233
}
234234
}
235235

236-
@SuppressWarnings("BusyWait")
236+
@SuppressWarnings({"BusyWait", "CallToPrintStackTrace"})
237237
void assertSessionsAvailableWithin() throws InterruptedException {
238238
var deadline = System.currentTimeMillis() + 1000 * 120;
239239
while (System.currentTimeMillis() < deadline) {

driver/src/test/java/org/neo4j/driver/integration/QueryIT.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void shouldRunWithParameters() {
7171
// Then nothing should've failed
7272
}
7373

74-
@SuppressWarnings("ConstantConditions")
74+
@SuppressWarnings("ConstantValue")
7575
@Test
7676
void shouldRunWithNullValuesAsParameters() {
7777
// Given
@@ -83,7 +83,7 @@ void shouldRunWithNullValuesAsParameters() {
8383
// Then nothing should've failed
8484
}
8585

86-
@SuppressWarnings("ConstantConditions")
86+
@SuppressWarnings("ConstantValue")
8787
@Test
8888
void shouldRunWithNullRecordAsParameters() {
8989
// Given
@@ -95,7 +95,7 @@ void shouldRunWithNullRecordAsParameters() {
9595
// Then nothing should've failed
9696
}
9797

98-
@SuppressWarnings("ConstantConditions")
98+
@SuppressWarnings("ConstantValue")
9999
@Test
100100
void shouldRunWithNullMapAsParameters() {
101101
// Given

driver/src/test/java/org/neo4j/driver/integration/TransactionIT.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ void shouldHandleFailureAfterClosingTransaction() {
213213
ClientException.class, () -> session.run("CREAT (n) RETURN n").consume());
214214
}
215215

216-
@SuppressWarnings("ConstantConditions")
216+
@SuppressWarnings("ConstantValue")
217217
@Test
218218
void shouldHandleNullRecordParameters() {
219219
// When
@@ -226,7 +226,7 @@ void shouldHandleNullRecordParameters() {
226226
// Then it wasn't the end of the world as we know it
227227
}
228228

229-
@SuppressWarnings("ConstantConditions")
229+
@SuppressWarnings("ConstantValue")
230230
@Test
231231
void shouldHandleNullValueParameters() {
232232
// When
@@ -239,7 +239,7 @@ void shouldHandleNullValueParameters() {
239239
// Then it wasn't the end of the world as we know it
240240
}
241241

242-
@SuppressWarnings("ConstantConditions")
242+
@SuppressWarnings("ConstantValue")
243243
@Test
244244
void shouldHandleNullMapParameters() {
245245
// When

driver/src/test/java/org/neo4j/driver/internal/InternalExecutableQueryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ static List<RoutingControl> routingControls() {
122122

123123
@ParameterizedTest
124124
@MethodSource("routingControls")
125-
@SuppressWarnings({"unchecked", "resource", "ResultOfMethodCallIgnored"})
125+
@SuppressWarnings({"unchecked", "resource"})
126126
void shouldExecuteAndReturnResult(RoutingControl routingControl) {
127127
// GIVEN
128128
var driver = mock(Driver.class);

driver/src/test/java/org/neo4j/driver/internal/cluster/loadbalancing/RoutingTableAndConnectionPoolTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ public CompletionStage<ClusterCompositionLookupResult> lookupClusterComposition(
363363
.mapToObj(SERVERS::get)
364364
.filter(Objects::nonNull)
365365
.collect(Collectors.toSet());
366-
if (servers.size() == 0) {
366+
if (servers.isEmpty()) {
367367
var address = SERVERS.stream()
368368
.filter(Objects::nonNull)
369369
.findFirst()

driver/src/test/java/org/neo4j/driver/internal/retry/ExponentialBackoffRetryLogicTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ private static List<Long> delaysWithoutJitter(long initialDelay, double multipli
12671267
var delay = initialDelay;
12681268
do {
12691269
values.add(delay);
1270-
delay *= multiplier;
1270+
delay *= (long) multiplier;
12711271
} while (--count > 0);
12721272
return values;
12731273
}

driver/src/test/java/org/neo4j/driver/internal/util/BookmarkUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public static void assertBookmarkContainsSingleValue(Bookmark bookmark, Matcher<
6969
assertNotNull(bookmark);
7070
assertThat(bookmark, instanceOf(InternalBookmark.class));
7171

72-
var values = asList(((InternalBookmark) bookmark).values());
72+
var values = asList((bookmark).values());
7373
assertThat(values.size(), equalTo(1));
7474
assertThat(values.get(0), matcher);
7575
}
@@ -84,7 +84,7 @@ public static void assertBookmarksContainsSingleUniqueValues(Bookmark... bookmar
8484

8585
for (var bookmark : bookmarks) {
8686
assertBookmarkContainsSingleValue(bookmark);
87-
var values = asList(((InternalBookmark) bookmark).values());
87+
var values = asList((bookmark).values());
8888
bookmarkStrings.addAll(values);
8989
}
9090
assertEquals(count, bookmarkStrings.size());

driver/src/test/java/org/neo4j/driver/stress/AsyncWriteQuery.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
public class AsyncWriteQuery<C extends AbstractContext> extends AbstractAsyncQuery<C> {
3030
private final AbstractStressTestBase<C> stressTest;
3131

32-
public AsyncWriteQuery(AbstractStressTestBase<C> stressTest, Driver driver, boolean useBookmark) {
32+
AsyncWriteQuery(AbstractStressTestBase<C> stressTest, Driver driver, boolean useBookmark) {
3333
super(driver, useBookmark);
3434
this.stressTest = stressTest;
3535
}

driver/src/test/java/org/neo4j/driver/stress/AsyncWriteQueryInTx.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
public class AsyncWriteQueryInTx<C extends AbstractContext> extends AbstractAsyncQuery<C> {
2929
private final AbstractStressTestBase<C> stressTest;
3030

31-
public AsyncWriteQueryInTx(AbstractStressTestBase<C> stressTest, Driver driver, boolean useBookmark) {
31+
AsyncWriteQueryInTx(AbstractStressTestBase<C> stressTest, Driver driver, boolean useBookmark) {
3232
super(driver, useBookmark);
3333
this.stressTest = stressTest;
3434
}

driver/src/test/java/org/neo4j/driver/stress/AsyncWriteQueryWithRetries.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
public class AsyncWriteQueryWithRetries<C extends AbstractContext> extends AbstractAsyncQuery<C> {
3131
private final AbstractStressTestBase<C> stressTest;
3232

33-
public AsyncWriteQueryWithRetries(AbstractStressTestBase<C> stressTest, Driver driver, boolean useBookmark) {
33+
AsyncWriteQueryWithRetries(AbstractStressTestBase<C> stressTest, Driver driver, boolean useBookmark) {
3434
super(driver, useBookmark);
3535
this.stressTest = stressTest;
3636
}

driver/src/test/java/org/neo4j/driver/stress/BlockingWriteQuery.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
public class BlockingWriteQuery<C extends AbstractContext> extends AbstractBlockingQuery<C> {
2828
private final AbstractStressTestBase<C> stressTest;
2929

30-
public BlockingWriteQuery(AbstractStressTestBase<C> stressTest, Driver driver, boolean useBookmark) {
30+
BlockingWriteQuery(AbstractStressTestBase<C> stressTest, Driver driver, boolean useBookmark) {
3131
super(driver, useBookmark);
3232
this.stressTest = stressTest;
3333
}

driver/src/test/java/org/neo4j/driver/stress/BlockingWriteQueryInTx.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
public class BlockingWriteQueryInTx<C extends AbstractContext> extends AbstractBlockingQuery<C> {
2828
private final AbstractStressTestBase<C> stressTest;
2929

30-
public BlockingWriteQueryInTx(AbstractStressTestBase<C> stressTest, Driver driver, boolean useBookmark) {
30+
BlockingWriteQueryInTx(AbstractStressTestBase<C> stressTest, Driver driver, boolean useBookmark) {
3131
super(driver, useBookmark);
3232
this.stressTest = stressTest;
3333
}

driver/src/test/java/org/neo4j/driver/stress/BlockingWriteQueryWithRetries.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
public class BlockingWriteQueryWithRetries<C extends AbstractContext> extends AbstractBlockingQuery<C> {
2727
private final AbstractStressTestBase<C> stressTest;
2828

29-
public BlockingWriteQueryWithRetries(AbstractStressTestBase<C> stressTest, Driver driver, boolean useBookmark) {
29+
BlockingWriteQueryWithRetries(AbstractStressTestBase<C> stressTest, Driver driver, boolean useBookmark) {
3030
super(driver, useBookmark);
3131
this.stressTest = stressTest;
3232
}

driver/src/test/java/org/neo4j/driver/stress/RxWriteQuery.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
public class RxWriteQuery<C extends AbstractContext> extends AbstractRxQuery<C> {
3333
private final AbstractStressTestBase<C> stressTest;
3434

35-
public RxWriteQuery(AbstractStressTestBase<C> stressTest, Driver driver, boolean useBookmark) {
35+
RxWriteQuery(AbstractStressTestBase<C> stressTest, Driver driver, boolean useBookmark) {
3636
super(driver, useBookmark);
3737
this.stressTest = stressTest;
3838
}

driver/src/test/java/org/neo4j/driver/stress/RxWriteQueryInTx.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
public class RxWriteQueryInTx<C extends AbstractContext> extends AbstractRxQuery<C> {
3737
private final AbstractStressTestBase<C> stressTest;
3838

39-
public RxWriteQueryInTx(AbstractStressTestBase<C> stressTest, Driver driver, boolean useBookmark) {
39+
RxWriteQueryInTx(AbstractStressTestBase<C> stressTest, Driver driver, boolean useBookmark) {
4040
super(driver, useBookmark);
4141
this.stressTest = stressTest;
4242
}

driver/src/test/java/org/neo4j/driver/stress/RxWriteQueryWithRetries.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
public class RxWriteQueryWithRetries<C extends AbstractContext> extends AbstractRxQuery<C> {
3333
private final AbstractStressTestBase<C> stressTest;
3434

35-
public RxWriteQueryWithRetries(AbstractStressTestBase<C> stressTest, Driver driver, boolean useBookmark) {
35+
RxWriteQueryWithRetries(AbstractStressTestBase<C> stressTest, Driver driver, boolean useBookmark) {
3636
super(driver, useBookmark);
3737
this.stressTest = stressTest;
3838
}

examples/src/main/java/org/neo4j/docs/driver/AsyncAutocommitTransactionExample.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public AsyncAutocommitTransactionExample(String uri, String user, String passwor
3030
super(uri, user, password);
3131
}
3232

33+
@SuppressWarnings("CallToPrintStackTrace")
3334
// tag::async-autocommit-transaction[]
3435
public CompletionStage<List<String>> readProductTitles() {
3536
var query = "MATCH (p:Product) WHERE p.id = $id RETURN p.title";

0 commit comments

Comments
 (0)