Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Vosburgh2015-07-23 21:59:02 +0000
committerBrian Vosburgh2015-07-23 21:59:02 +0000
commitaaaf2bd5bb576ee318328eab417f32bad0a68b67 (patch)
tree2b5ba6ce63e6857416f3290be637136ed335c280
parent99101b9613846763f8a64ff164c7b260e9bb0d04 (diff)
downloadwebtools.dali-aaaf2bd5bb576ee318328eab417f32bad0a68b67.tar.gz
webtools.dali-aaaf2bd5bb576ee318328eab417f32bad0a68b67.tar.xz
webtools.dali-aaaf2bd5bb576ee318328eab417f32bad0a68b67.zip
minor tweaks sot LinkedQueue
-rw-r--r--common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/collection/LinkedQueue.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/collection/LinkedQueue.java b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/collection/LinkedQueue.java
index a9468e24de..ee07946479 100644
--- a/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/collection/LinkedQueue.java
+++ b/common/plugins/org.eclipse.jpt.common.utility/src/org/eclipse/jpt/common/utility/internal/collection/LinkedQueue.java
@@ -25,7 +25,7 @@ public class LinkedQueue<E>
{
private final NodeFactory<E> nodeFactory;
private transient Node<E> head; // next element to dequeue
- private transient Node<E> tail; // enqueue next element here
+ private transient Node<E> tail; // last element
private static final long serialVersionUID = 1L;
@@ -147,8 +147,7 @@ public class LinkedQueue<E>
// write nodeFactory (and any hidden stuff)
stream.defaultWriteObject();
Object[] elements = this.buildElements();
- int len = elements.length;
- stream.writeInt(len);
+ stream.writeInt(elements.length);
for (Object element : elements) {
stream.writeObject(element);
}

Back to the top