From e1e002131ea53c207e6eb620f796b16ca94ec0d8 Mon Sep 17 00:00:00 2001 From: Kandel Irina Date: Mon, 12 Mar 2018 09:17:38 +0200 Subject: [PATCH] ?! --- .../graphhopper/jsprit/core/algorithm/state/StateManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jsprit-core/src/main/java/com/graphhopper/jsprit/core/algorithm/state/StateManager.java b/jsprit-core/src/main/java/com/graphhopper/jsprit/core/algorithm/state/StateManager.java index 05eaa321..9d9fbb63 100644 --- a/jsprit-core/src/main/java/com/graphhopper/jsprit/core/algorithm/state/StateManager.java +++ b/jsprit-core/src/main/java/com/graphhopper/jsprit/core/algorithm/state/StateManager.java @@ -449,10 +449,10 @@ public class StateManager implements RouteAndActivityStateGetter, IterationStart * @param stateId the stateId which is the associated key to the activity state * @param state the state that is associated to the activity and stateId * @param the type of the state - * @throws java.lang.IllegalStateException if vehicle.getVehicleTypeIdentifier().getIndex() == 0 || stateId.getIndex() < noInternalStates + * @throws java.lang.IllegalStateException if vehicle.getIndex() == 0 || stateId.getIndex() < noInternalStates */ public void putRouteState(VehicleRoute route, Vehicle vehicle, StateId stateId, T state) { - if (vehicle.getVehicleTypeIdentifier().getIndex() == 0) throw new IllegalStateException("vehicle index is 0. this should not be."); + if (vehicle.getIndex() == 0) throw new IllegalStateException("vehicle index is 0. this should not be."); if (stateId.getIndex() < initialNoStates) StateFactory.throwReservedIdException(stateId.toString()); putTypedInternalRouteState(route, vehicle, stateId, state); }