Skip to content

Commit 8a85671

Browse files
committed
stats.size: prioritize Long signature
If no output type is specified these signatures need distinction.
1 parent 656f7dc commit 8a85671

File tree

1 file changed

+1
-1
lines changed
  • scijava-ops-engine/src/main/java/org/scijava/ops/engine/stats

1 file changed

+1
-1
lines changed

scijava-ops-engine/src/main/java/org/scijava/ops/engine/stats/Size.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class Size implements OpCollection {
4343
* @param iterable the data to operate over
4444
* @return the size of the dataset, as as {@link Long}
4545
*/
46-
@OpMethod(names = "stats.size", type = Function.class)
46+
@OpMethod(names = "stats.size", type = Function.class, priority = 50.0)
4747
public static <T> Long sizeAsLong(Iterable<T> iterable) {
4848
return StreamSupport.stream(iterable.spliterator(), false).count();
4949
}

0 commit comments

Comments
 (0)