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:
@@ -1,5 +1,5 @@
|
||||
/* LocalNameFunction.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 LocalNameFunction
|
||||
|
||||
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 _local_name(context, (Collection) val);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user