This commit is contained in:
huangyuhui
2018-01-09 17:14:50 +08:00
parent 4b65d4da06
commit 8e6b56b2d6
19 changed files with 842 additions and 459 deletions

View File

@@ -108,14 +108,14 @@ public abstract class Task {
* The collection of sub-tasks that should execute **before** this task running.
*/
public Collection<Task> getDependents() {
return Collections.EMPTY_SET;
return Collections.emptySet();
}
/**
* The collection of sub-tasks that should execute **after** this task running.
*/
public Collection<Task> getDependencies() {
return Collections.EMPTY_SET;
return Collections.emptySet();
}
public EventManager<TaskEvent> onDone() {
@@ -180,8 +180,6 @@ public abstract class Task {
progressProperty.unbind();
}
;
public final TaskExecutor executor() {
return new TaskExecutor(this);
}