mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
service builder: avoid unnecessary casting
This commit is contained in:
parent
a4a5af6105
commit
391282d806
1 changed files with 0 additions and 8 deletions
|
|
@ -152,14 +152,6 @@ public class Service extends AbstractJob {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected T create() {
|
|
||||||
if (location == null) throw new IllegalStateException("location is missing");
|
|
||||||
this.setType("service");
|
|
||||||
capacity = capacityBuilder.build();
|
|
||||||
skills = skillBuilder.build();
|
|
||||||
return (T) new Service(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Builds the service.
|
* Builds the service.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue