Skip to content

Commit 8d04c6c

Browse files
hvubNataliaIvakina
andauthored
Fix use of non-public method (#339)
* fix use of non-public method resolves of SURF-131 * Update traversal-framework-java-api.adoc --------- Co-authored-by: Natalia Ivakina <82437520+NataliaIvakina@users.noreply.github.com>
1 parent 9812de9 commit 8d04c6c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/ROOT/pages/traversal-framework/traversal-framework-java-api.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ class MaxWeightPathExpander implements PathExpander<Double>
370370
filtered.add(relationship);
371371
}
372372
}
373-
return Iterables.asResourceIterable(filtered);
373+
return ResourceIterable.of(filtered);
374374
}
375375
376376
@Override
@@ -381,6 +381,8 @@ class MaxWeightPathExpander implements PathExpander<Double>
381381
}
382382
----
383383

384+
`ResourceIterable.of` is available starting from Neo4j 2026.03.
385+
384386
Here is an example of how to use the custom `PathExpander` and set the initial state:
385387

386388
[source, java, role="nocopy"]

0 commit comments

Comments
 (0)