mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-29 18:34:42 +00:00
add test for FastActionList
This commit is contained in:
@@ -57,6 +57,11 @@ public class FastActionList implements Collection<ActionItem> {
|
||||
getJumps(actions, actionItemMap);
|
||||
}
|
||||
|
||||
public final ActionItem insertItemBefore(ActionItem item, Action action) {
|
||||
ActionItem newItem = new ActionItem(action);
|
||||
return insertItemBefore(item, newItem);
|
||||
}
|
||||
|
||||
public final ActionItem insertItemAfter(ActionItem item, Action action) {
|
||||
ActionItem newItem = new ActionItem(action);
|
||||
return insertItemAfter(item, newItem);
|
||||
|
||||
@@ -550,6 +550,10 @@ public class ASMParser {
|
||||
}
|
||||
}
|
||||
|
||||
if (ret.size() == 0 || !(ret.get(ret.size() - 1) instanceof ActionEnd)) {
|
||||
ret.add(new ActionEnd());
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user