Update Procyon Decompiler To New TempFIles API

This commit is contained in:
Konloch 2024-10-02 10:58:41 -06:00
parent 8301a58db8
commit 5a3820b50c

AI 샘플 코드 생성 중입니다

Loading...

View File

@ -32,6 +32,7 @@ import the.bytecode.club.bytecodeviewer.decompilers.AbstractDecompiler;
import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings;
import the.bytecode.club.bytecodeviewer.util.EncodeUtils; import the.bytecode.club.bytecodeviewer.util.EncodeUtils;
import the.bytecode.club.bytecodeviewer.util.MiscUtils; import the.bytecode.club.bytecodeviewer.util.MiscUtils;
import the.bytecode.club.bytecodeviewer.util.TempFiles;
import java.io.*; import java.io.*;
import java.util.*; import java.util.*;
@ -85,8 +86,7 @@ public class ProcyonDecompiler extends AbstractDecompiler
String exception; String exception;
try try
{ {
final String fileStart = TEMP_DIRECTORY + FS + "temp"; final File tempClass = TempFiles.createTemporaryFile(false, ".class");
final File tempClass = new File(MiscUtils.getUniqueName(fileStart, ".class") + ".class");
try (FileOutputStream fos = new FileOutputStream(tempClass)) try (FileOutputStream fos = new FileOutputStream(tempClass))
{ {