Skip to content

Commit 1cb2850

Browse files
chris-evolvedbinaryadamretter
authored andcommitted
[bugfix] Change the cardinality of the document-uri function return type
1 parent 56c445e commit 1cb2850

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exist-core/src/main/java/org/exist/xquery/functions/fn/FunDocumentURI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import org.exist.xquery.*;
2828
import org.exist.xquery.value.*;
2929

30-
import static org.exist.xquery.FunctionDSL.optManyParam;
30+
import static org.exist.xquery.FunctionDSL.optParam;
3131
import static org.exist.xquery.FunctionDSL.returnsOpt;
3232
import static org.exist.xquery.functions.fn.FnModule.functionSignature;
3333

@@ -37,7 +37,7 @@
3737
*/
3838
public class FunDocumentURI extends Function {
3939

40-
private static final FunctionParameterSequenceType FS_PARAM_NODE = optManyParam("value", Type.NODE, "The document node.");
40+
private static final FunctionParameterSequenceType FS_PARAM_NODE = optParam("value", Type.NODE, "The document node.");
4141

4242
private static final String FS_DOCUMENT_URI = "document-uri";
4343
private static final String FS_DESCRIPTION = "Returns the URI of a resource where a document can be found, if available.";

0 commit comments

Comments
 (0)