using existing getOffset method everywhere, made offset is privete

This commit is contained in:
honfika@gmail.com
2015-11-30 09:16:51 +01:00
parent 2b17094592
commit 0cf0df67ea
16 changed files with 114 additions and 110 deletions

View File

@@ -122,6 +122,7 @@ public abstract class Action implements GraphSourceItem {
*/
public int actionLength;
// todo: honfika: rename to offset to be similar with AS3
private long address;
@Override
@@ -208,6 +209,7 @@ public abstract class Action implements GraphSourceItem {
}
public int getTotalActionLength() {
// honfika: todo rename to getBytesLength to match the name with the similar method in AS3
return actionLength + 1 + (actionCode >= 0x80 ? 2 : 0);
}

View File

@@ -672,7 +672,7 @@ public class FastActionList implements Collection<ActionItem> {
if (o instanceof ActionItem) {
item = (ActionItem) o;
} else if (o instanceof Action) {
item = actionItemMap.get(o);
item = actionItemMap.get((Action) o);
}
if (item == null) {