mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-13 16:20:34 +00:00
Fix usage of Java6 API.
This commit is contained in:
parent
84d47b6202
commit
67db7d7b2d
2 changed files with 2 additions and 2 deletions
|
@ -121,7 +121,7 @@ public abstract class AbstractNetworkProvider implements NetworkProvider
|
|||
|
||||
protected static String normalizeStationId(final String stationId)
|
||||
{
|
||||
if (stationId == null || stationId.isEmpty())
|
||||
if (stationId == null || stationId.length() == 0)
|
||||
return null;
|
||||
|
||||
if (stationId.charAt(0) != '0')
|
||||
|
|
|
@ -243,7 +243,7 @@ public abstract class AbstractTsiProvider extends AbstractNetworkProvider
|
|||
|
||||
label.append(modePrefix);
|
||||
|
||||
if (number != null && !number.isEmpty())
|
||||
if (number != null && number.length() > 0)
|
||||
{
|
||||
label.append(number);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue