Skip to content

Commit b1f4122

Browse files
DarthMaxIoannisPanagiotas
authored andcommitted
Remove overloaded parse method in ComponentSpec
1 parent 6820e2d commit b1f4122

File tree

1 file changed

+2
-2
lines changed
  • procedures/facade-api/configs/similarity-configs/src/main/java/org/neo4j/gds/similarity/nodesim

1 file changed

+2
-2
lines changed

procedures/facade-api/configs/similarity-configs/src/main/java/org/neo4j/gds/similarity/nodesim/ComponentSpec.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ public static ComponentSpec parse(Object userInput) {
4747
throw new IllegalArgumentException("Invalid component spec: cannot parse null as node property");
4848
}
4949
if (userInput instanceof String) {
50-
return parse((String) userInput);
50+
return parseString((String) userInput);
5151
}
5252
throw new IllegalArgumentException(formatWithLocale("Invalid component spec: cannot parse type %s with value %s", userInput.getClass().getSimpleName(), userInput.toString()));
5353
}
5454

55-
private static ComponentSpec parse(@NotNull String userInput) {
55+
private static ComponentSpec parseString(@NotNull String userInput) {
5656
if (userInput.isBlank()) {
5757
throw new IllegalArgumentException("Invalid component spec: expected a valid node property");
5858
}

0 commit comments

Comments
 (0)