Skip to content

Commit

Permalink
replace HashMap by LinkedHashMap to ensure reproducibility (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
oblonski committed Apr 27, 2015
1 parent 3772436 commit 62e1057
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,17 @@ public void setSchemaValidation(boolean schemaValidation) {

public VrpXMLReader(VehicleRoutingProblem.Builder vrpBuilder, Collection<VehicleRoutingProblemSolution> solutions){
this.vrpBuilder = vrpBuilder;
this.vehicleMap = new HashMap<String, Vehicle>();
this.serviceMap = new HashMap<String, Service>();
this.shipmentMap = new HashMap<String, Shipment>();
this.vehicleMap = new LinkedHashMap<String, Vehicle>();
this.serviceMap = new LinkedHashMap<String, Service>();
this.shipmentMap = new LinkedHashMap<String, Shipment>();
this.solutions = solutions;
}

public VrpXMLReader(VehicleRoutingProblem.Builder vrpBuilder){
this.vrpBuilder = vrpBuilder;
this.vehicleMap = new HashMap<String, Vehicle>();
this.serviceMap = new HashMap<String, Service>();
this.shipmentMap = new HashMap<String, Shipment>();
this.vehicleMap = new LinkedHashMap<String, Vehicle>();
this.serviceMap = new LinkedHashMap<String, Service>();
this.shipmentMap = new LinkedHashMap<String, Shipment>();
this.solutions = null;
}

Expand Down

0 comments on commit 62e1057

Please sign in to comment.