mirror of
https://github.com/corda/corda.git
synced 2025-06-13 12:48:18 +00:00
clean up bootstrap type generation to eliminate redundancy (broken)
This commit is contained in:
@ -7,21 +7,21 @@ public class ReferenceQueue<T> {
|
||||
public Reference<? extends T> poll() {
|
||||
Reference<? extends T> r = front;
|
||||
if (front != null) {
|
||||
if (front == front.next) {
|
||||
if (front == front.jNext) {
|
||||
front = rear = null;
|
||||
} else {
|
||||
front = front.next;
|
||||
front = front.jNext;
|
||||
}
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
||||
void add(Reference<? extends T> r) {
|
||||
r.next = r;
|
||||
r.jNext = r;
|
||||
if (front == null) {
|
||||
front = r;
|
||||
} else {
|
||||
rear.next = r;
|
||||
rear.jNext = r;
|
||||
}
|
||||
rear = r;
|
||||
}
|
||||
|
Reference in New Issue
Block a user