From 5a3820b50c62bd6290f8ef6561956f61885fe218 Mon Sep 17 00:00:00 2001 From: Konloch Date: Wed, 2 Oct 2024 10:58:41 -0600 Subject: [PATCH] Update Procyon Decompiler To New TempFIles API --- .../bytecodeviewer/decompilers/impl/ProcyonDecompiler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/ProcyonDecompiler.java b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/ProcyonDecompiler.java index c4bb26ab..7d6c8889 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/ProcyonDecompiler.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/ProcyonDecompiler.java @@ -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)) {