mirror of
https://github.com/zaaarf/lillero-processor.git
synced 2024-11-10 06:09:20 +01:00
fix: now the mapper automagically converts internal names to FQN
This commit is contained in:
parent
19b739943f
commit
c46106beba
1 changed files with 6 additions and 3 deletions
|
@ -52,7 +52,7 @@ public class ObfuscationMapper {
|
|||
* @throws MappingNotFoundException if no mapping is found
|
||||
*/
|
||||
public String obfuscateClass(String name) {
|
||||
ObfuscationData data = mapper.get(name);
|
||||
ObfuscationData data = mapper.get(name.replace('.', '/'));
|
||||
if(data == null)
|
||||
throw new MappingNotFoundException(name);
|
||||
else return data.obf;
|
||||
|
@ -80,10 +80,13 @@ public class ObfuscationMapper {
|
|||
* @throws MappingNotFoundException if no mapping is found
|
||||
*/
|
||||
public String obfuscateMember(String parentName, String memberName) {
|
||||
ObfuscationData data = mapper.get(parentName);
|
||||
ObfuscationData data = mapper.get(parentName.replace('.', '/'));
|
||||
if(data == null)
|
||||
throw new MappingNotFoundException(parentName + "::" + memberName);
|
||||
return data.members.get(memberName);
|
||||
String member = data.members.get(memberName);
|
||||
if(member == null)
|
||||
throw new MappingNotFoundException(parentName + "::" + memberName);
|
||||
return member;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue