throw interrupted exception when Thread.isInterrupted() => timed out threads will abort

This commit is contained in:
Honfika
2013-11-05 23:29:26 +01:00
parent 91d7f2b919
commit 62e97826a9
25 changed files with 87 additions and 62 deletions
@@ -1913,7 +1913,7 @@ public class SWF {
}
HashMap<String, Integer> typeCounts = new HashMap<>();
public int deobfuscateIdentifiers(RenameType renameType) {
public int deobfuscateIdentifiers(RenameType renameType) throws InterruptedException {
findFileAttributes();
if (fileAttributes == null) {
int cnt = 0;
@@ -1929,17 +1929,17 @@ public class SWF {
}
}
public void renameAS2Identifier(String identifier, String newname) {
public void renameAS2Identifier(String identifier, String newname) throws InterruptedException {
Map<String, String> selected = new HashMap<>();
selected.put(identifier, newname);
renameAS2Identifiers(null, selected);
}
public int deobfuscateAS2Identifiers(RenameType renameType) {
public int deobfuscateAS2Identifiers(RenameType renameType) throws InterruptedException {
return renameAS2Identifiers(renameType, null);
}
private int renameAS2Identifiers(RenameType renameType, Map<String, String> selected) {
private int renameAS2Identifiers(RenameType renameType, Map<String, String> selected) throws InterruptedException {
actionsMap = new HashMap<>();
allFunctions = new ArrayList<>();
allVariableNames = new ArrayList<>();