package com.infomatiq.jsi;
import gnu.trove.TIntArrayList;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
import gnu.trove.TFloatArrayList;
/**
* @version 1.0b8
*/
public class PriorityQueue {
+ private static final Logger LOGGER = LoggerFactory.getLogger(PriorityQueue.class);
public static final boolean SORT_ORDER_ASCENDING = true;
public static final boolean SORT_ORDER_DESCENDING = false;
if (leftIndex <= lastIndex) {
float leftPriority = priorities.get(leftIndex);
if (sortsEarlierThan(leftPriority, currentPriority)) {
- System.err.println("Internal error in PriorityQueue");
+ LOGGER.error("Internal error in PriorityQueue");
}
}
if (rightIndex <= lastIndex) {
float rightPriority = priorities.get(rightIndex);
if (sortsEarlierThan(rightPriority, currentPriority)) {
- System.err.println("Internal error in PriorityQueue");
+ LOGGER.error("Internal error in PriorityQueue");
}
}
}