Skip to content

Commit

Permalink
fix missing method/field mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Jul 25, 2024
1 parent cabb92f commit 2b795ac
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ abstract class AbstractMappingTree : BaseNode<MappingVisitor, NullVisitor>(null)
val mParts = parts.second!!.getParts()
val mappedName = if (mParts.second == null || mParts.second!!.isFieldDescriptor()) {
val fd = cls.getFields(fromNs, mParts.first.value, mParts.second?.getFieldDescriptor())
fd.first().getName(toNs) ?: mParts.first.value
fd.firstOrNull()?.getName(toNs) ?: mParts.first.value
} else {
val md = cls.getMethods(fromNs, mParts.first.value, mParts.second?.getMethodDescriptor())
md.first().getName(toNs) ?: mParts.first.value
md.firstOrNull()?.getName(toNs) ?: mParts.first.value
}
val mappedDesc = if (mParts.second == null) {
null
Expand Down

0 comments on commit 2b795ac

Please sign in to comment.