Fix Change Class File Versions Plugin 'Cancel' Option

Resolves #447
This commit is contained in:
Konloch 2024-10-01 19:10:44 -06:00
parent ed7865c295
commit dac4cee668

AI 샘플 코드 생성 중입니다

Loading...

View File

@ -41,7 +41,12 @@ public class ChangeClassFileVersions extends Plugin
{
//prompt dialog for version number
// TODO: include a little diagram of what JDK is which number
int newVersion = Integer.parseInt(BytecodeViewer.showInput("Class Version Number: (52 = JDK 8)"));
String input = BytecodeViewer.showInput("Class Version Number: (52 = JDK 8)");
if(input == null)
return;
int newVersion = Integer.parseInt(input);
//update the ClassFile version
classNodeList.forEach(classNode -> classNode.version = newVersion);