Anomaly identified by the detector. Please review whether this anomaly corresponds to a misuse.
Finding:
finding-2
In File:
org/w3c/tools/timers/EventManager.java
In Method:
checkQueue()
Code with Finding:
class EventManager {
synchronized void checkQueue() {
Vector q = queue;
if (q.size() == 0)
return;
Event e = (Event) q.elementAt(0);
int i, size = q.size();
for (i = 1; i < size; i++) {
Event next = (Event) q.elementAt(i);
if (next.time < e.time) {
System.out.println("Events out of order!\n");
System.out.println(q);
}
e = next;
}
}
}