From e8452d8335c66cf55beb2064076301093d025872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Kubitz?= Date: Tue, 26 Nov 2024 10:55:52 +0100 Subject: [PATCH] PatternWin32ManualTest: suppress Discouraged access warning The type 'DPIUtil' is not API (restriction on required project 'org.eclipse.swt.win32.win32.x86_64') --- .../org/eclipse/swt/widgets/PatternWin32ManualTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/org.eclipse.swt.tests.win32/ManualTests/org/eclipse/swt/widgets/PatternWin32ManualTest.java b/tests/org.eclipse.swt.tests.win32/ManualTests/org/eclipse/swt/widgets/PatternWin32ManualTest.java index 371e918f412..5ebba0bb533 100644 --- a/tests/org.eclipse.swt.tests.win32/ManualTests/org/eclipse/swt/widgets/PatternWin32ManualTest.java +++ b/tests/org.eclipse.swt.tests.win32/ManualTests/org/eclipse/swt/widgets/PatternWin32ManualTest.java @@ -33,6 +33,7 @@ public class PatternWin32ManualTest { private static Display display = Display.getDefault(); public static void main (String [] args) { + @SuppressWarnings("restriction") int zoom = DPIUtil.getDeviceZoom(); int scalingFactor = 3; int scaledZoom = zoom * scalingFactor;