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
842067231d
commit
a4a5af6105
6 changed files with 28 additions and 20 deletions
|
|
@ -267,7 +267,7 @@ public class RefuseCollection_IT {
|
|||
/*
|
||||
* build service
|
||||
*/
|
||||
Pickup service = (Pickup) Pickup.Builder.newInstance(lineTokens[0]).addSizeDimension(0, Integer.parseInt(lineTokens[1]))
|
||||
Pickup service = Pickup.Builder.newInstance(lineTokens[0]).addSizeDimension(0, Integer.parseInt(lineTokens[1]))
|
||||
.setLocation(Location.newInstance(lineTokens[0])).build();
|
||||
/*
|
||||
* and add it to problem
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue