mirror of https://github.com/apache/druid.git
Simplify AbstractTask constructor
This commit is contained in:
parent
d8493f8e26
commit
25e330780c
|
@ -58,11 +58,7 @@ public abstract class AbstractTask implements Task
|
|||
|
||||
protected AbstractTask(String id, String groupId, String dataSource, Interval interval)
|
||||
{
|
||||
this.id = Preconditions.checkNotNull(id, "id");
|
||||
this.groupId = Preconditions.checkNotNull(groupId, "groupId");
|
||||
this.taskResource = new TaskResource(id, 1);
|
||||
this.dataSource = Preconditions.checkNotNull(dataSource, "dataSource");
|
||||
this.interval = Optional.fromNullable(interval);
|
||||
this(id, groupId, new TaskResource(id, 1), dataSource, interval);
|
||||
}
|
||||
|
||||
protected AbstractTask(String id, String groupId, TaskResource taskResource, String dataSource, Interval interval)
|
||||
|
|
Loading…
Reference in New Issue