Skip to content

Commit

Permalink
[NOID] Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
loveleif committed Nov 7, 2023
1 parent 38b6ffa commit 0fa5810
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
26 changes: 13 additions & 13 deletions core/src/main/java/apoc/trigger/TriggerHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,19 +134,19 @@ private Map<String, Map<String, Object>> getTriggers() {
return withSystemDb(tx -> {
final var dbName = db.databaseName();
return tx.findNodes(ApocTrigger, SystemPropertyKeys.database.name(), dbName).stream()
.collect(Collectors.toUnmodifiableMap(
node -> (String) node.getProperty(SystemPropertyKeys.name.name()),
node -> MapUtil.map(
"statement", node.getProperty(SystemPropertyKeys.statement.name()),
"selector",
Util.fromJson(
(String) node.getProperty(SystemPropertyKeys.selector.name()),
Map.class),
"params",
Util.fromJson(
(String) node.getProperty(SystemPropertyKeys.params.name()),
Map.class),
"paused", node.getProperty(SystemPropertyKeys.paused.name()))));
.collect(Collectors.toUnmodifiableMap(
node -> (String) node.getProperty(SystemPropertyKeys.name.name()),
node -> MapUtil.map(
"statement",
node.getProperty(SystemPropertyKeys.statement.name()),
"selector",
Util.fromJson(
(String) node.getProperty(SystemPropertyKeys.selector.name()), Map.class),
"params",
Util.fromJson(
(String) node.getProperty(SystemPropertyKeys.params.name()), Map.class),
"paused",
node.getProperty(SystemPropertyKeys.paused.name()))));
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
import apoc.SystemLabels;
import apoc.util.Neo4jContainerExtension;
import apoc.util.TestContainerUtil;

import java.io.IOException;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -415,7 +414,7 @@ class CreateNodes implements Runnable {
public static final String Label = "StressTest";
private final Driver driver;
private final String db;
private final AtomicBoolean done = new AtomicBoolean( false);
private final AtomicBoolean done = new AtomicBoolean(false);

CreateNodes(Driver driver, String db) {
this.driver = driver;
Expand Down

0 comments on commit 0fa5810

Please sign in to comment.