Skip to content

Commit

Permalink
[NOID] Annotate apoc.do with @NotThreadSafe (#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusmelke committed Feb 28, 2024
1 parent b5f4b14 commit b5493b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/apoc/cypher/Cypher.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ public Stream<MapResult> runSchema(
return runCypherQuery(tx, statement, params);
}

@NotThreadSafe
@Procedure("apoc.when")
@Description(
"This procedure will run the read-only `ifQuery` if the conditional has evaluated to true, otherwise the `elseQuery` will run.")
Expand Down Expand Up @@ -220,6 +221,7 @@ public Stream<MapResult> doWhen(
return when(condition, ifQuery, elseQuery, params);
}

@NotThreadSafe
@Procedure("apoc.case")
@Description(
"For each pair of conditional and read-only queries in the given `LIST<ANY>`, this procedure will run the first query for which the conditional is evaluated to true. If none of the conditionals are true, the `ELSE` query will run instead.")
Expand Down

0 comments on commit b5493b6

Please sign in to comment.