summaryrefslogtreecommitdiffstats
path: root/src/org/jetbrains/java/decompiler/modules/code
diff options
context:
space:
mode:
authorRoman Shevchenko <roman.shevchenko@jetbrains.com>2014-08-29 21:58:12 +0400
committerRoman Shevchenko <roman.shevchenko@jetbrains.com>2014-08-29 21:58:12 +0400
commitf5431c3bb14854025dc1f0ec470b77497f79494c (patch)
tree909c1c06492d849fa062a60c56a02dd26e7095b6 /src/org/jetbrains/java/decompiler/modules/code
parent63b8d35d08a198215ddabb42cca5b0e823232768 (diff)
downloadfernflower-f5431c3bb14854025dc1f0ec470b77497f79494c.tar
fernflower-f5431c3bb14854025dc1f0ec470b77497f79494c.tar.gz
fernflower-f5431c3bb14854025dc1f0ec470b77497f79494c.tar.lz
fernflower-f5431c3bb14854025dc1f0ec470b77497f79494c.tar.xz
fernflower-f5431c3bb14854025dc1f0ec470b77497f79494c.zip
java-decompiler: post-import cleanup (common fixes and optimizations)
Diffstat (limited to 'src/org/jetbrains/java/decompiler/modules/code')
-rw-r--r--src/org/jetbrains/java/decompiler/modules/code/DeadCodeHelper.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/org/jetbrains/java/decompiler/modules/code/DeadCodeHelper.java b/src/org/jetbrains/java/decompiler/modules/code/DeadCodeHelper.java
index e8377ae..c7dd8ca 100644
--- a/src/org/jetbrains/java/decompiler/modules/code/DeadCodeHelper.java
+++ b/src/org/jetbrains/java/decompiler/modules/code/DeadCodeHelper.java
@@ -24,10 +24,7 @@ import org.jetbrains.java.decompiler.code.cfg.ExceptionRangeCFG;
import org.jetbrains.java.decompiler.main.DecompilerContext;
import org.jetbrains.java.decompiler.main.extern.IFernflowerPreferences;
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.LinkedList;
-import java.util.List;
+import java.util.*;
public class DeadCodeHelper {
@@ -177,7 +174,7 @@ public class DeadCodeHelper {
}
// finally exit edges
- HashSet<BasicBlock> setFinallyExits = graph.getFinallyExits();
+ Set<BasicBlock> setFinallyExits = graph.getFinallyExits();
if (setFinallyExits.contains(block)) {
setFinallyExits.remove(block);
setFinallyExits.add(setPreds.iterator().next());