Skip to content

Commit

Permalink
better fix, open mapping entry
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Jul 25, 2024
1 parent fe418e6 commit 4b4c720
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ abstract class MappingResolver<T : MappingResolver<T>>(val name: String) {

open suspend fun combinedNames(): String {
finalize()
return entries.keys.sorted().map { entries[it]?.id }.joinToString("-")
return entries.entries.sortedBy { it.key }.joinToString("-") { it.value.id }
}

lateinit var namespaces: Map<Namespace, Boolean>
Expand Down Expand Up @@ -217,7 +217,7 @@ abstract class MappingResolver<T : MappingResolver<T>>(val name: String) {
}
}

inner class MappingEntry(content: ContentProvider, val id: String) : MappingConfig(content) {
open inner class MappingEntry(content: ContentProvider, open val id: String) : MappingConfig(content) {
private val subEntries = finalizableSetOf<MappingConfig.(ContentProvider, FormatProvider) -> Unit>()

override suspend fun finalize() {
Expand Down

0 comments on commit 4b4c720

Please sign in to comment.