diff options
Diffstat (limited to 'gnu/xml/xpath/NumberFunction.java')
-rw-r--r-- | gnu/xml/xpath/NumberFunction.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/xml/xpath/NumberFunction.java b/gnu/xml/xpath/NumberFunction.java index 79553ce81..8804a7886 100644 --- a/gnu/xml/xpath/NumberFunction.java +++ b/gnu/xml/xpath/NumberFunction.java @@ -68,9 +68,9 @@ final class NumberFunction final Expr arg; - NumberFunction(List args) + NumberFunction(List<Expr> args) { - this(args.size() > 0 ? (Expr) args.get(0) : null); + this(args.size() > 0 ? args.get(0) : null); } NumberFunction(Expr arg) @@ -78,6 +78,7 @@ final class NumberFunction this.arg = arg; } + @Override public Object evaluate(Node context, int pos, int len) { Object val = (arg == null) ? null : arg.evaluate(context, pos, len); |