Misc cleanup/refactoring

git-svn-id: https://smali.googlecode.com/svn/trunk@205 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
JesusFreke@JesusFreke.com 2009-06-21 20:12:57 +00:00
parent bf4ca730cc
commit 56d16a23f6
3 changed files with 4 additions and 8 deletions

View File

@ -55,12 +55,8 @@ public class MethodDefinition {
this.parameterAnnotations = parameterAnnotations;
}
private String methodName = null;
public String getMethodName() {
if (methodName == null) {
methodName = methodIdItem.getMethodName();
}
return methodName;
return methodIdItem.getMethodName().getStringValue();
}
private List<String> accessFlags = null;

View File

@ -40,7 +40,7 @@ public class MethodReference extends Reference<MethodIdItem> {
}
public String getMethodName() {
return item.getMethodName();
return item.getMethodName().getStringValue();
}
public String getPrototype() {

View File

@ -79,8 +79,8 @@ public class MethodIdItem extends IndexedItem<MethodIdItem> {
return prototypeReferenceField.getReference();
}
public String getMethodName() {
return methodNameReferenceField.getReference().getStringValue();
public StringIdItem getMethodName() {
return methodNameReferenceField.getReference();
}
public int getParameterRegisterCount(boolean isStatic) {