mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 04:19:51 +00:00
Hafas: ON_DEMAND and BUS means just ON_DEMAND.
This commit is contained in:
parent
57f12818da
commit
b3965275fb
1 changed files with 6 additions and 2 deletions
|
@ -347,9 +347,13 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
|
||||||
final int v = 1 << i;
|
final int v = 1 << i;
|
||||||
if (value >= v)
|
if (value >= v)
|
||||||
{
|
{
|
||||||
if (product != null)
|
final Product p = productsMap[i];
|
||||||
|
if (product == Product.ON_DEMAND && p == Product.BUS)
|
||||||
|
; // just ON_DEMAND
|
||||||
|
else if (product != null)
|
||||||
throw new IllegalArgumentException("ambigous value: " + productInt);
|
throw new IllegalArgumentException("ambigous value: " + productInt);
|
||||||
product = productsMap[i];
|
else
|
||||||
|
product = p;
|
||||||
value -= v;
|
value -= v;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue