< prev index next >
src/java.xml/share/classes/com/sun/org/apache/xpath/internal/NodeSet.java
Print this page
@@ -1,8 +1,8 @@
/*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
+ * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
+ * @LastModified: Nov 2017
*/
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
@@ -348,11 +348,11 @@
public Node item(int index)
{
runTo(index);
- return (Node) this.elementAt(index);
+ return this.elementAt(index);
}
/**
* The number of nodes in the list. The range of valid child node indices is
* 0 to <code>length-1</code> inclusive. Note that this operation requires
@@ -580,11 +580,11 @@
int i;
Node node = nodelist.item(testIndex);
for (i = end; i >= start; i--)
{
- Node child = (Node) elementAt(i);
+ Node child = elementAt(i);
if (child == node)
{
i = -2; // Duplicate, suppress insert
@@ -646,11 +646,11 @@
// two nodes.
int size = size(), i;
for (i = size - 1; i >= 0; i--)
{
- Node child = (Node) elementAt(i);
+ Node child = elementAt(i);
if (child == node)
{
i = -2; // Duplicate, suppress insert
< prev index next >