summaryrefslogtreecommitdiffstats
path: root/src/org/jetbrains/java/decompiler/struct
diff options
context:
space:
mode:
authorEgor.Ushakov <egor.ushakov@jetbrains.com>2014-10-07 20:37:21 +0400
committerEgor.Ushakov <egor.ushakov@jetbrains.com>2014-10-07 20:39:03 +0400
commit125441a88fc58f74ecfe2c1081a04b6c4d05ea61 (patch)
treebe047a9e4ff42d483fd6f135e740038671af6ee8 /src/org/jetbrains/java/decompiler/struct
parent9f9da912f666dc2d25b7ba7e03283f13b4c5b4bf (diff)
downloadfernflower-125441a88fc58f74ecfe2c1081a04b6c4d05ea61.tar
fernflower-125441a88fc58f74ecfe2c1081a04b6c4d05ea61.tar.gz
fernflower-125441a88fc58f74ecfe2c1081a04b6c4d05ea61.tar.lz
fernflower-125441a88fc58f74ecfe2c1081a04b6c4d05ea61.tar.xz
fernflower-125441a88fc58f74ecfe2c1081a04b6c4d05ea61.zip
decompiler: move generated lines as it is stated in debug line table (disabled for now)
Diffstat (limited to 'src/org/jetbrains/java/decompiler/struct')
-rw-r--r--src/org/jetbrains/java/decompiler/struct/ContextUnit.java7
-rw-r--r--src/org/jetbrains/java/decompiler/struct/IDecompiledData.java4
2 files changed, 7 insertions, 4 deletions
diff --git a/src/org/jetbrains/java/decompiler/struct/ContextUnit.java b/src/org/jetbrains/java/decompiler/struct/ContextUnit.java
index 819ae64..dd68544 100644
--- a/src/org/jetbrains/java/decompiler/struct/ContextUnit.java
+++ b/src/org/jetbrains/java/decompiler/struct/ContextUnit.java
@@ -15,6 +15,7 @@
*/
package org.jetbrains.java.decompiler.struct;
+import org.jetbrains.java.decompiler.main.TextBuffer;
import org.jetbrains.java.decompiler.main.extern.IResultSaver;
import org.jetbrains.java.decompiler.struct.lazy.LazyLoader;
import org.jetbrains.java.decompiler.struct.lazy.LazyLoader.Link;
@@ -110,7 +111,7 @@ public class ContextUnit {
StructClass cl = classes.get(i);
String entryName = decompiledData.getClassEntryName(cl, classEntries.get(i));
if (entryName != null) {
- String content = decompiledData.getClassContent(cl);
+ TextBuffer content = decompiledData.getClassContent(cl);
if (content != null) {
resultSaver.saveClassFile(filename, cl.qualifiedName, entryName, content);
}
@@ -142,8 +143,8 @@ public class ContextUnit {
StructClass cl = classes.get(i);
String entryName = decompiledData.getClassEntryName(cl, classEntries.get(i));
if (entryName != null) {
- String content = decompiledData.getClassContent(cl);
- resultSaver.saveClassEntry(archivePath, filename, cl.qualifiedName, entryName, content);
+ TextBuffer content = decompiledData.getClassContent(cl);
+ resultSaver.saveClassEntry(archivePath, filename, cl.qualifiedName, entryName, content.toString());
}
}
diff --git a/src/org/jetbrains/java/decompiler/struct/IDecompiledData.java b/src/org/jetbrains/java/decompiler/struct/IDecompiledData.java
index f309b0e..25f1f88 100644
--- a/src/org/jetbrains/java/decompiler/struct/IDecompiledData.java
+++ b/src/org/jetbrains/java/decompiler/struct/IDecompiledData.java
@@ -15,9 +15,11 @@
*/
package org.jetbrains.java.decompiler.struct;
+import org.jetbrains.java.decompiler.main.TextBuffer;
+
public interface IDecompiledData {
String getClassEntryName(StructClass cl, String entryname);
- String getClassContent(StructClass cl);
+ TextBuffer getClassContent(StructClass cl);
}