Use safe call operator

Signed-off-by: Graham <gpe@openrs2.dev>
bzip2
Graham 5 years ago
parent a54c540290
commit 00f0279e15
  1. 5
      asm/src/main/java/dev/openrs2/asm/ClassNodeRemapper.kt

@ -16,10 +16,7 @@ fun ClassNode.remap(remapper: Remapper) {
name = remapper.mapType(originalName) name = remapper.mapType(originalName)
signature = remapper.mapSignature(signature, false) signature = remapper.mapSignature(signature, false)
superName = remapper.mapType(superName) superName = remapper.mapType(superName)
interfaces = interfaces?.map(remapper::mapType)
if (interfaces != null) {
interfaces = interfaces.map(remapper::mapType)
}
for (field in fields) { for (field in fields) {
field.name = remapper.mapFieldName(originalName, field.name, field.desc) field.name = remapper.mapFieldName(originalName, field.name, field.desc)

Loading…
Cancel
Save