1
0
Fork 0
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:
muzuro 2015-09-16 12:26:03 +03:00
parent a4a5af6105
commit 391282d806

View file

@ -152,14 +152,6 @@ public class Service extends AbstractJob {
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.
*