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