Skip to content

Commit

Permalink
Mappings: Add support for unmapping mapped class names
Browse files Browse the repository at this point in the history
  • Loading branch information
camnwalter committed Jun 29, 2024
1 parent faceb92 commit c722dd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fabric-api = "0.100.3+1.21"
fabric-kotlin = "1.11.0+kotlin.2.0.0"

mapping-io = "0.6.1"
rhino = "f61b5a4"
rhino = "7c7c509668"
jackson-core = "2.13.2"
textarea = "3.2.0"
serialization = "1.5.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import org.mozilla.javascript.JavaObjectMappingProvider
import java.lang.reflect.Modifier

object CTJavaObjectMappingProvider : JavaObjectMappingProvider {
override fun remapClassName(className: String) = Mappings.getMappedClassName(className)?.replace('/', '.')
override fun mapClassName(className: String) = Mappings.mapClassName(className)?.replace('/', '.')

override fun unmapClassName(className: String) = Mappings.unmapClassName(className)?.replace('/', '.')

override fun findExtraMethods(
clazz: Class<*>,
Expand Down

0 comments on commit c722dd8

Please sign in to comment.