Update Procyon Decompiler To New TempFIles API
This commit is contained in:
parent
8301a58db8
commit
5a3820b50c
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user