fix: forgot a couple throws

This commit is contained in:
zaaarf 2023-08-26 23:21:28 +02:00
parent 6ec42321a3
commit 3514ce5b3b
No known key found for this signature in database
GPG key ID: 6445A5CD15E5B40C

View file

@ -42,7 +42,7 @@ public abstract class AbstractMapper implements IMapper {
@Override
public ClassData getClassData(String name) {
public ClassData getClassData(String name) throws MappingNotFoundException {
ClassData data = this.mappings.get(name.replace('.', '/'));
if(data == null)
throw new MappingNotFoundException("class", name);
@ -50,7 +50,7 @@ public abstract class AbstractMapper implements IMapper {
}
@Override
public MethodData getMethodData(String parent, String name, String descriptor) {
public MethodData getMethodData(String parent, String name, String descriptor) throws MappingNotFoundException {
return this.getClassData(parent).mapMethod(name, descriptor);
}