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 f6cc9d4
Showing 1 changed file with 3 additions and 1 deletion.
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 f6cc9d4

Please sign in to comment.