From 3380b6d928480c9ffe4d03f95b9da80d90e852ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sat, 24 May 2025 09:31:12 +0200 Subject: [PATCH] Java 8 compatibility fix --- .../decompiler/flash/gui/jna/platform/win32/Dwmapi.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/com/jpexs/decompiler/flash/gui/jna/platform/win32/Dwmapi.java b/src/com/jpexs/decompiler/flash/gui/jna/platform/win32/Dwmapi.java index 6d2a2cd0e..aa106d1db 100644 --- a/src/com/jpexs/decompiler/flash/gui/jna/platform/win32/Dwmapi.java +++ b/src/com/jpexs/decompiler/flash/gui/jna/platform/win32/Dwmapi.java @@ -25,6 +25,8 @@ import com.sun.jna.Library; import com.sun.jna.Native; import com.sun.jna.Structure; import com.sun.jna.win32.W32APIOptions; +import java.util.Arrays; +import java.util.List; public interface Dwmapi extends Library { @@ -38,8 +40,8 @@ public interface Dwmapi extends Library { public int cyBottomHeight; @Override - protected java.util.List getFieldOrder() { - return java.util.List.of("cxLeftWidth", "cxRightWidth", "cyTopHeight", "cyBottomHeight"); + protected List getFieldOrder() { + return Arrays.asList("cxLeftWidth", "cxRightWidth", "cyTopHeight", "cyBottomHeight"); } }