diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a7f6302f..3210e5f81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +### Fixed +- Java 8 compatibility ## [21.0.3] - 2024-08-27 ### Added diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/script/AS3ScriptExporter.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/script/AS3ScriptExporter.java index fb0ac8c73..a9b15ec6a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/script/AS3ScriptExporter.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/script/AS3ScriptExporter.java @@ -442,7 +442,7 @@ public class AS3ScriptExporter { } } - if (documentClass != null && !includeClassesBuilder.isEmpty()) { + if (documentClass != null && includeClassesBuilder.length() > 0) { StringBuilder prep = new StringBuilder(); prep.append(" /**\r\n"); prep.append(" * This class contains references to all decompiled sound/image/font classes.\r\n"); @@ -454,7 +454,7 @@ public class AS3ScriptExporter { } //If no sound/image classes found, then do not include FFDecIncludeClasses at all - if (includeClassesBuilder.isEmpty()) { + if (includeClassesBuilder.length() == 0) { exportSettings = (ScriptExportSettings) exportSettings.clone(); exportSettings.includeAllClasses = false; } @@ -500,7 +500,7 @@ public class AS3ScriptExporter { tasks.add(new ExportPackTask(swf.getAbcIndex(), handler, cnt++, packs.size(), item.getClassPath(), item, file, exportSettings, parallel, evl)); } - if (!includeClassesBuilder.isEmpty()) { + if (includeClassesBuilder.length() > 0) { includeClassesBuilder.append(" }\r\n"); includeClassesBuilder.append("}\r\n");