Procyon Ensure Cleanup

This commit is contained in:
Konloch 2024-10-02 12:30:24 -06:00
parent 45d722cb2d
commit 3f45802257

AI 샘플 코드 생성 중입니다

Loading...

View File

@ -94,9 +94,6 @@ public class ProcyonDecompiler extends AbstractDecompiler
StringWriter stringwriter = new StringWriter();
settings.getLanguage().decompileType(resolvedType, new PlainTextOutput(stringwriter), decompilationOptions);
//delete all temporary files
tempFile.delete();
return EncodeUtils.unicodeToString(stringwriter.toString());
}
catch (Throwable e)
@ -107,10 +104,12 @@ public class ProcyonDecompiler extends AbstractDecompiler
exception = ExceptionUI.SEND_STACKTRACE_TO_NL + sw;
}
//delete all temporary files
if(tempFile != null)
tempFile.delete();
finally
{
//delete all temporary files
if(tempFile != null)
tempFile.delete();
}
return PROCYON + " " + ERROR + "! " + ExceptionUI.SEND_STACKTRACE_TO + NL + NL
+ TranslatedStrings.SUGGESTED_FIX_DECOMPILER_ERROR + NL + NL + exception;