fixed matcher names

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@918 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach@gmail.com 2012-01-28 16:09:47 +00:00
parent b474dc1e68
commit ed91f6c463

View file

@ -1895,11 +1895,11 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
protected Line parseLineAndType(final String lineAndType) protected Line parseLineAndType(final String lineAndType)
{ {
final Matcher m = P_NORMALIZE_LINE_AND_TYPE.matcher(lineAndType); final Matcher mLineAndType = P_NORMALIZE_LINE_AND_TYPE.matcher(lineAndType);
if (m.matches()) if (mLineAndType.matches())
{ {
final String number = m.group(1); final String number = mLineAndType.group(1);
final String type = m.group(2); final String type = mLineAndType.group(2);
if (type.length() == 0) if (type.length() == 0)
{ {
@ -1917,16 +1917,16 @@ public abstract class AbstractHafasProvider extends AbstractNetworkProvider
{ {
if (normalizedType == 'B') if (normalizedType == 'B')
{ {
final Matcher mBusSpecial = P_NORMALIZE_LINE_BUS.matcher(number); final Matcher mBus = P_NORMALIZE_LINE_BUS.matcher(number);
if (mBusSpecial.matches()) if (mBus.matches())
return newLine('B' + mBusSpecial.group(1)); return newLine('B' + mBus.group(1));
} }
if (normalizedType == 'T') if (normalizedType == 'T')
{ {
final Matcher mBusSpecial = P_NORMALIZE_LINE_TRAM.matcher(number); final Matcher mTram = P_NORMALIZE_LINE_TRAM.matcher(number);
if (mBusSpecial.matches()) if (mTram.matches())
return newLine('T' + mBusSpecial.group(1)); return newLine('T' + mTram.group(1));
} }
return newLine(normalizedType + number.replaceAll("\\s+", "")); return newLine(normalizedType + number.replaceAll("\\s+", ""));