fix: forgot the descriptor in a few places

This commit is contained in:
zaaarf 2023-08-27 09:51:03 +02:00
parent e07a0ac423
commit 3000895130
No known key found for this signature in database
GPG key ID: 6445A5CD15E5B40C
2 changed files with 2 additions and 2 deletions

View file

@ -51,7 +51,7 @@ public class MultiMapper extends AbstractMapper {
data.getFields().forEach((fieldName, fieldData) -> { data.getFields().forEach((fieldName, fieldData) -> {
for(int i = 1; i < mapperList.size(); i++) for(int i = 1; i < mapperList.size(); i++)
fieldData = mapperList.get(i).getFieldData(fieldData.parentClass.nameMapped, fieldData.nameMapped); fieldData = mapperList.get(i).getFieldData(fieldData.parentClass.nameMapped, fieldData.nameMapped);
sumData.addField(fieldName, fieldData.nameMapped); sumData.addField(fieldName, fieldData.nameMapped, fieldData.descriptor);
}); });
this.mappings.put(sumData.name, sumData); this.mappings.put(sumData.name, sumData);

View file

@ -89,7 +89,7 @@ public class ClassData {
ClassData reverse = new ClassData(this.nameMapped, this.name); ClassData reverse = new ClassData(this.nameMapped, this.name);
this.methods.forEach((signature, data) -> reverse.addMethod(nameMapped, signature.name, this.methods.forEach((signature, data) -> reverse.addMethod(nameMapped, signature.name,
MappingUtils.mapMethodDescriptor(signature.descriptor, mapper, false))); MappingUtils.mapMethodDescriptor(signature.descriptor, mapper, false)));
this.fields.forEach((name, data) -> reverse.addField(data.nameMapped, name)); this.fields.forEach((name, data) -> reverse.addField(data.nameMapped, name, data.descriptor));
return reverse; return reverse;
} }