Imported GNU Classpath 0.20
Imported GNU Classpath 0.20 * Makefile.am (AM_CPPFLAGS): Add classpath/include. * java/nio/charset/spi/CharsetProvider.java: New override file. * java/security/Security.java: Likewise. * sources.am: Regenerated. * Makefile.in: Likewise. From-SVN: r109831
This commit is contained in:
parent
bcb36c3e02
commit
2127637945
444 changed files with 75778 additions and 30731 deletions
|
@ -1,5 +1,5 @@
|
|||
/* NamespaceUriFunction.java --
|
||||
Copyright (C) 2004 Free Software Foundation, Inc.
|
||||
Copyright (C) 2004,2006 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
|
@ -38,6 +38,7 @@ exception statement from your version. */
|
|||
package gnu.xml.xpath;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import javax.xml.namespace.QName;
|
||||
import org.w3c.dom.Node;
|
||||
|
@ -70,7 +71,8 @@ final class NamespaceUriFunction
|
|||
|
||||
public Object evaluate(Node context, int pos, int len)
|
||||
{
|
||||
Object val = (arg == null) ? null : arg.evaluate(context, pos, len);
|
||||
Object val = (arg == null) ? Collections.singleton(context) :
|
||||
arg.evaluate(context, pos, len);
|
||||
return _namespace_uri(context, (Collection) val);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue