mirror of
https://github.com/2martens/tsw-timetable.git
synced 2026-10-17 16:06:51 +02:00
fix: Unmarshalling requires mutable list
This commit is contained in:
+2
-2
@@ -8,7 +8,7 @@ import jakarta.xml.bind.annotation.*
|
||||
data class BahnTimetable(
|
||||
@field:XmlAttribute var eva: Eva,
|
||||
@field:XmlAttribute var station: String,
|
||||
@field:XmlElement(name = "s") var stops: List<BahnStationStop>
|
||||
@field:XmlElement(name = "s") var stops: MutableList<BahnStationStop>
|
||||
) {
|
||||
constructor() : this(Eva.UNKNOWN, "", listOf())
|
||||
constructor() : this(Eva.UNKNOWN, "", mutableListOf())
|
||||
}
|
||||
Reference in New Issue
Block a user