Browse Source

[Performance][PeerTaskInstancePriorityQueue]code style formatter

pull/3/MERGE
wuxiaofei 4 years ago
parent
commit
488726139f
  1. 6
      dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/queue/PeerTaskInstancePriorityQueue.java

6
dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/queue/PeerTaskInstancePriorityQueue.java

@ -24,7 +24,6 @@ import java.util.Comparator;
import java.util.Iterator; import java.util.Iterator;
import java.util.PriorityQueue; import java.util.PriorityQueue;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock; import java.util.concurrent.locks.ReentrantLock;
/** /**
@ -47,11 +46,6 @@ public class PeerTaskInstancePriorityQueue implements TaskPriorityQueue<TaskInst
*/ */
private final ReentrantLock lock = new ReentrantLock(true); private final ReentrantLock lock = new ReentrantLock(true);
/**
* Condition for blocking when empty
*/
private final Condition notEmpty = lock.newCondition();
/** /**
* put task instance to priority queue * put task instance to priority queue
* *

Loading…
Cancel
Save