aboutsummaryrefslogtreecommitdiff
path: root/moaSig/common/src/main/java/at/gv/egovernment/moaspss/util/NodeListAdapter.java
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2021-03-24 11:08:57 +0000
committerThomas Lenz <thomas.lenz@egiz.gv.at>2021-03-24 11:08:57 +0000
commit666d8c9f8cec7573e60a14ab039c0874f6a9ec53 (patch)
treed9b2506506cf544ea3758322fd5488c913073427 /moaSig/common/src/main/java/at/gv/egovernment/moaspss/util/NodeListAdapter.java
parentd003a873fdeec22b1dd57d61590a12a1691ae137 (diff)
parentcd65b47cc30e7119593bbb05afa48d4f896a4859 (diff)
downloadmoa-sig-666d8c9f8cec7573e60a14ab039c0874f6a9ec53.tar.gz
moa-sig-666d8c9f8cec7573e60a14ab039c0874f6a9ec53.tar.bz2
moa-sig-666d8c9f8cec7573e60a14ab039c0874f6a9ec53.zip
Merge branch 'feature/codestyle_and_gitlab_ci' into 'master'
Feature/codestyle and gitlab ci See merge request egiz/moa-sig!1
Diffstat (limited to 'moaSig/common/src/main/java/at/gv/egovernment/moaspss/util/NodeListAdapter.java')
-rw-r--r--moaSig/common/src/main/java/at/gv/egovernment/moaspss/util/NodeListAdapter.java15
1 files changed, 8 insertions, 7 deletions
diff --git a/moaSig/common/src/main/java/at/gv/egovernment/moaspss/util/NodeListAdapter.java b/moaSig/common/src/main/java/at/gv/egovernment/moaspss/util/NodeListAdapter.java
index d88ef4b..d569516 100644
--- a/moaSig/common/src/main/java/at/gv/egovernment/moaspss/util/NodeListAdapter.java
+++ b/moaSig/common/src/main/java/at/gv/egovernment/moaspss/util/NodeListAdapter.java
@@ -21,7 +21,6 @@
* that you distribute must include a readable copy of the "NOTICE" text file.
*/
-
package at.gv.egovernment.moaspss.util;
import java.util.List;
@@ -31,21 +30,21 @@ import org.w3c.dom.NodeList;
/**
* A <code>NodeList</code> implementation based on a <code>List</code>.
- *
+ *
* @see java.util.List
* @see org.w3c.dom.NodeList
- *
+ *
* @author Patrick Peck
* @version $Id$
*/
public class NodeListAdapter implements NodeList {
/** The <code>List</code> to wrap. */
- private List nodeList;
-
+ private final List nodeList;
+
/**
* Create a new <code>NodeListAdapter</code>.
- *
- * @param nodeList The <code>List</code> containing the nodes.
+ *
+ * @param nodeList The <code>List</code> containing the nodes.
*/
public NodeListAdapter(List nodeList) {
this.nodeList = nodeList;
@@ -54,6 +53,7 @@ public class NodeListAdapter implements NodeList {
/**
* @see org.w3c.dom.NodeList#item(int)
*/
+ @Override
public Node item(int index) {
return (Node) nodeList.get(index);
}
@@ -61,6 +61,7 @@ public class NodeListAdapter implements NodeList {
/**
* @see org.w3c.dom.NodeList#getLength()
*/
+ @Override
public int getLength() {
return nodeList.size();
}