mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-07 23:18:48 +00:00
AbstractHafasLegacyProvider: Replace a String concatenation with StringBuilder.append().
This commit is contained in:
parent
0f8eaaead6
commit
9c92d75353
1 changed files with 2 additions and 3 deletions
|
@ -754,9 +754,8 @@ public abstract class AbstractHafasLegacyProvider extends AbstractHafasProvider
|
||||||
conReq.append("<ReqT a=\"").append(dep ? 0 : 1).append("\" date=\"")
|
conReq.append("<ReqT a=\"").append(dep ? 0 : 1).append("\" date=\"")
|
||||||
.append(String.format(Locale.ENGLISH, "%04d.%02d.%02d", c.get(Calendar.YEAR), c.get(Calendar.MONTH) + 1,
|
.append(String.format(Locale.ENGLISH, "%04d.%02d.%02d", c.get(Calendar.YEAR), c.get(Calendar.MONTH) + 1,
|
||||||
c.get(Calendar.DAY_OF_MONTH)))
|
c.get(Calendar.DAY_OF_MONTH)))
|
||||||
.append("\" time=\"")
|
.append("\" time=\"").append(String.format(Locale.ENGLISH, "%02d:%02d", c.get(Calendar.HOUR_OF_DAY),
|
||||||
.append(String.format(Locale.ENGLISH, "%02d:%02d", c.get(Calendar.HOUR_OF_DAY), c.get(Calendar.MINUTE))
|
c.get(Calendar.MINUTE))).append("\"/>");
|
||||||
+ "\"/>");
|
|
||||||
conReq.append("<RFlags");
|
conReq.append("<RFlags");
|
||||||
// number of trips backwards
|
// number of trips backwards
|
||||||
conReq.append(" b=\"").append(0).append("\"");
|
conReq.append(" b=\"").append(0).append("\"");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue