Em Ter 10 Jan 2006 04:50, Chris Burdess escreveu:
I would prefer:
final class EmptyNodeList implements NodeList
{
static final EmptyNodeList instance = new EmptyNodeList();
public final int getLength() {return 0;}
public final Node item(int index) {return null;}
}
That way:
We ask that people agree to the GNU Classpath Hackers requirements
before granting CVS commit permissions. You can find them at:
http://www.gnu.org/software/classpath/docs/hacking.html#SEC2
I'm submiting source code to this list to be included in the GNU classpath
project, assuring that I wrote
in SableVM classpath because for gnu.xml.dom.DomNode,
node.getChildNodes() returns itself.
My proposed solution is:
Add to gnu.xml.dom.DomText:
import org.w3c.dom.NodeList;
/**
* Returns an EmptyNodeList.
*
* @author Pedro Izecksohn
*/
public NodeList getChildNodes()
{
return
3 matches
Mail list logo