Fix refmap generation for #97 and #99

This commit is contained in:
Mumfrey committed 2016-01-27 13:32:14 +00:00
1 parent 54fa0f4e76
commit 93dca4fc57
2 files changed
+38 -4

No files matched your search

@@ -36,6 +36,11 @@ public final class SrgMethod {
this.desc = desc;
}
public SrgMethod(String owner, String simpleName, String desc) {
this.name = SrgMethod.createName(owner, simpleName);
this.desc = desc;
}
public String getName() {
return this.name;
}
@@ -61,7 +66,7 @@ public final class SrgMethod {
}
public SrgMethod move(String newOwner) {
return new SrgMethod((newOwner != null ? newOwner + "/" : "") + this.getSimpleName(), this.desc);
return new SrgMethod(newOwner, this.getSimpleName(), this.desc);
}
public SrgMethod copy() {
@@ -89,4 +94,8 @@ public final class SrgMethod {
return String.format("%s %s", this.name, this.desc);
}
private static String createName(String owner, String simpleName) {
return (owner != null ? owner + "/" : "") + simpleName;
}
}