Remove extra null check, not technically needed
@@ -100,12 +100,9 @@ public class ClassViewport extends EditorViewport {
// SUPPLIER: Fetch decompiled code
String decompilerPrefix = (controller.config().decompile().showName ?
"// Decompiled with: " + decompiler.getNameAndVersion() + "\n" : "");
- String classVersionPrefix = "";
byte[] clazz = controller.getWorkspace().getRawClass(path);
- if (clazz != null) {
int version = ClassUtil.getVersion(clazz) - ClassUtil.VERSION_OFFSET;
- classVersionPrefix = "// Class Version: " + version + "\n";
- }
+ String classVersionPrefix = "// Class Version: " + version + "\n";
String decompile = decompilerPrefix + classVersionPrefix +
decompiler.create(controller).decompile(path);
return EscapeUtil.unescapeUnicode(decompile);
