diff options
Diffstat (limited to 'src/org/jetbrains/java/decompiler/struct')
-rw-r--r-- | src/org/jetbrains/java/decompiler/struct/ContextUnit.java | 7 | ||||
-rw-r--r-- | src/org/jetbrains/java/decompiler/struct/IDecompiledData.java | 4 |
2 files changed, 4 insertions, 7 deletions
diff --git a/src/org/jetbrains/java/decompiler/struct/ContextUnit.java b/src/org/jetbrains/java/decompiler/struct/ContextUnit.java index dd68544..819ae64 100644 --- a/src/org/jetbrains/java/decompiler/struct/ContextUnit.java +++ b/src/org/jetbrains/java/decompiler/struct/ContextUnit.java @@ -15,7 +15,6 @@ */ 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; @@ -111,7 +110,7 @@ public class ContextUnit { StructClass cl = classes.get(i); String entryName = decompiledData.getClassEntryName(cl, classEntries.get(i)); if (entryName != null) { - TextBuffer content = decompiledData.getClassContent(cl); + String content = decompiledData.getClassContent(cl); if (content != null) { resultSaver.saveClassFile(filename, cl.qualifiedName, entryName, content); } @@ -143,8 +142,8 @@ public class ContextUnit { StructClass cl = classes.get(i); String entryName = decompiledData.getClassEntryName(cl, classEntries.get(i)); if (entryName != null) { - TextBuffer content = decompiledData.getClassContent(cl); - resultSaver.saveClassEntry(archivePath, filename, cl.qualifiedName, entryName, content.toString()); + String content = decompiledData.getClassContent(cl); + resultSaver.saveClassEntry(archivePath, filename, cl.qualifiedName, entryName, content); } } diff --git a/src/org/jetbrains/java/decompiler/struct/IDecompiledData.java b/src/org/jetbrains/java/decompiler/struct/IDecompiledData.java index 25f1f88..f309b0e 100644 --- a/src/org/jetbrains/java/decompiler/struct/IDecompiledData.java +++ b/src/org/jetbrains/java/decompiler/struct/IDecompiledData.java @@ -15,11 +15,9 @@ */ package org.jetbrains.java.decompiler.struct; -import org.jetbrains.java.decompiler.main.TextBuffer; - public interface IDecompiledData { String getClassEntryName(StructClass cl, String entryname); - TextBuffer getClassContent(StructClass cl); + String getClassContent(StructClass cl); } |