Fix usage of Java6 API.

This commit is contained in:
Andreas Schildbach 2014-06-18 16:09:48 +02:00
parent 84d47b6202
commit 67db7d7b2d
2 changed files with 2 additions and 2 deletions

View file

@ -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')

View file

@ -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);
}