Remove field.value null check

The mapValue() method already accepts and returns nulls.

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

@ -22,11 +22,8 @@ fun ClassNode.remap(remapper: Remapper) {
field.name = remapper.mapFieldName(originalName, field.name, field.desc)
field.desc = remapper.mapDesc(field.desc)
field.signature = remapper.mapSignature(field.signature, true)
if (field.value != null) {
field.value = remapper.mapValue(field.value)
}
}
for (method in methods) {
method.name = remapper.mapMethodName(originalName, method.name, method.desc)

Loading…
Cancel
Save