1
0
Fork 0
mirror of https://github.com/graphhopper/jsprit.git synced 2020-01-24 07:45:05 +01:00

simplified if statement core.problem.solution.route.state.StateFactory

This commit is contained in:
oblonski 2014-07-02 08:55:55 +02:00
parent eca766cc52
commit b48e2c404d

View file

@ -117,13 +117,11 @@ public class StateFactory {
}
public static boolean isReservedId(String stateId){
if(reservedIds.contains(stateId)) return true;
return false;
return reservedIds.contains(stateId);
}
public static boolean isReservedId(StateId stateId){
if(reservedIds.contains(stateId.toString())) return true;
return false;
return reservedIds.contains(stateId.toString());
}
public static void throwReservedIdException(String name) {