File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -203,23 +203,23 @@ private fun BinaryDataReader.readPosixTzString(): PosixTzString? {
203
203
var c = readAsciiChar()
204
204
fun readName (): String? {
205
205
if (c == ' \n ' ) return null
206
- var name = " "
206
+ val name = StringBuilder ()
207
207
if (c == ' <' ) {
208
208
c = readAsciiChar()
209
209
while (c != ' >' ) {
210
210
check(c.isLetterOrDigit() || c == ' -' || c == ' +' ) { " Invalid char '$c ' in the std name in POSIX TZ string" }
211
- name + = c
211
+ name.append(c)
212
212
c = readAsciiChar()
213
213
}
214
214
c = readAsciiChar()
215
215
} else {
216
216
while (c.isLetter()) {
217
- name + = c
217
+ name.append(c)
218
218
c = readAsciiChar()
219
219
}
220
220
}
221
221
check(name.isNotEmpty()) { " Empty std name in POSIX TZ string" }
222
- return name
222
+ return name.toString()
223
223
}
224
224
225
225
fun readOffset (): UtcOffset ? {
You can’t perform that action at this time.
0 commit comments