Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentyn Kahamlyk authored and Valentyn Kahamlyk committed Jun 21, 2024
1 parent 060ad76 commit 710f4b5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,13 @@ final String asString(final Map<?, ?> map) {
sb.append(":");
} else {
for (Map.Entry<?, ?> entry : map.entrySet()) {
sb.append(argAsString(entry.getKey())).append(":").append(argAsString(entry.getValue()));
String key = argAsString(entry.getKey());
// special handling for non-string keys
if (entry.getKey() instanceof Enum && key.contains(".")) {
key = String.format("(%s)", key);
}

sb.append(key).append(":").append(argAsString(entry.getValue()));
if (--size > 0) {
sb.append(',');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ public static final class GlobalCache {
// optimizations
put(ProductiveByStrategy.class.getSimpleName(), ProductiveByStrategy.class);
put(PathRetractionStrategy.class.getSimpleName(), PathRetractionStrategy.class);
put(RepeatUnrollStrategy.class.getSimpleName(), RepeatUnrollStrategy.class);

// verification
put(EdgeLabelVerificationStrategy.class.getSimpleName(), EdgeLabelVerificationStrategy.class);
Expand Down

0 comments on commit 710f4b5

Please sign in to comment.