You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sc...@apache.org on 2004/04/21 01:46:50 UTC
cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections/list NodeCachingLinkedList.java
scolebourne 2004/04/20 16:46:50
Modified: collections/src/java/org/apache/commons/collections/list
NodeCachingLinkedList.java
Log:
Add accessor methods for value field in Node of AbstractLinkedList
Revision Changes Path
1.7 +3 -3 jakarta-commons/collections/src/java/org/apache/commons/collections/list/NodeCachingLinkedList.java
Index: NodeCachingLinkedList.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/list/NodeCachingLinkedList.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- NodeCachingLinkedList.java 18 Feb 2004 01:12:26 -0000 1.6
+++ NodeCachingLinkedList.java 20 Apr 2004 23:46:50 -0000 1.7
@@ -172,7 +172,7 @@
Node nextCachedNode = firstCachedNode;
node.previous = null;
node.next = nextCachedNode;
- node.value = null;
+ node.setValue(null);
firstCachedNode = node;
cacheSize++;
}
@@ -190,7 +190,7 @@
if (cachedNode == null) {
return super.createNode(value);
} else {
- cachedNode.value = value;
+ cachedNode.setValue(value);
return cachedNode;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org