summaryrefslogtreecommitdiff
path: root/src/main/java/cuchaz/enigma/analysis
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/cuchaz/enigma/analysis')
-rw-r--r--src/main/java/cuchaz/enigma/analysis/index/JarIndex.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/main/java/cuchaz/enigma/analysis/index/JarIndex.java b/src/main/java/cuchaz/enigma/analysis/index/JarIndex.java
index 8e92dd8..c96e774 100644
--- a/src/main/java/cuchaz/enigma/analysis/index/JarIndex.java
+++ b/src/main/java/cuchaz/enigma/analysis/index/JarIndex.java
@@ -20,6 +20,8 @@ import cuchaz.enigma.translation.mapping.EntryResolver;
20import cuchaz.enigma.translation.mapping.IndexEntryResolver; 20import cuchaz.enigma.translation.mapping.IndexEntryResolver;
21import cuchaz.enigma.translation.representation.Lambda; 21import cuchaz.enigma.translation.representation.Lambda;
22import cuchaz.enigma.translation.representation.entry.*; 22import cuchaz.enigma.translation.representation.entry.*;
23import cuchaz.enigma.utils.I18n;
24
23import org.objectweb.asm.ClassReader; 25import org.objectweb.asm.ClassReader;
24import org.objectweb.asm.Opcodes; 26import org.objectweb.asm.Opcodes;
25 27
@@ -58,18 +60,18 @@ public class JarIndex implements JarIndexer {
58 } 60 }
59 61
60 public void indexJar(ClassCache classCache, ProgressListener progress) { 62 public void indexJar(ClassCache classCache, ProgressListener progress) {
61 progress.init(4, "Indexing jar"); 63 progress.init(4, I18n.translate("progress.jar.indexing"));
62 64
63 progress.step(1, "Entries..."); 65 progress.step(1, I18n.translate("progress.jar.indexing.entries"));
64 classCache.visit(() -> new IndexClassVisitor(this, Opcodes.ASM5), ClassReader.SKIP_CODE); 66 classCache.visit(() -> new IndexClassVisitor(this, Opcodes.ASM5), ClassReader.SKIP_CODE);
65 67
66 progress.step(2, "Entry references..."); 68 progress.step(2, I18n.translate("progress.jar.indexing.references"));
67 classCache.visit(() -> new IndexReferenceVisitor(this, entryIndex, inheritanceIndex, Opcodes.ASM5), 0); 69 classCache.visit(() -> new IndexReferenceVisitor(this, entryIndex, inheritanceIndex, Opcodes.ASM5), 0);
68 70
69 progress.step(3, "Bridge methods..."); 71 progress.step(3, I18n.translate("progress.jar.indexing.methods"));
70 bridgeMethodIndex.findBridgeMethods(); 72 bridgeMethodIndex.findBridgeMethods();
71 73
72 progress.step(4, "Processing..."); 74 progress.step(4, I18n.translate("progress.jar.indexing.process"));
73 processIndex(this); 75 processIndex(this);
74 } 76 }
75 77