From 74552f7795b9980fcf2b76b5c1ceb5388568030c Mon Sep 17 00:00:00 2001 From: Heiko Klare Date: Thu, 4 Jun 2026 10:37:33 +0200 Subject: [PATCH] [Win32] Suppress deprecation warnings in IE implementation The IE implementation uses deprecated methods from OleClientSite for removing event listener. There does not seem to be any intent in actually removing that method. Since IE is EOL, there is no need to updating that code to something else either. Thus, this silences the internal deprecation warnings as it does not provide any useful information. --- .../Eclipse SWT Browser/win32/org/eclipse/swt/browser/IE.java | 1 + 1 file changed, 1 insertion(+) diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/IE.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/IE.java index 0eca21a3287..190300cf427 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/IE.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/IE.java @@ -2017,6 +2017,7 @@ void hookDOMListeners(OleAutomation webBrowser, final boolean isTop) { documents = newDocuments; } +@SuppressWarnings("deprecation") void unhookDOMListeners(OleAutomation[] documents) { char[] buffer = (COM.IIDIHTMLDocumentEvents2 + '\0').toCharArray(); GUID guid = new GUID();