From af87fa2e0e01c291d07dad3abb57e46fb9af6dfd Mon Sep 17 00:00:00 2001 From: Heiko Klare Date: Thu, 4 Jun 2026 13:40:54 +0200 Subject: [PATCH] [Win32] Silence deprecation warnings in Accessibility Caption and summary for a table are provided via deprecated methods for almost a decade. Since there was not attempt and need to replace those methods with proper implementations yet, so that the warnings do not produce any reasonable insights, this change silences them. In case the deprecated methods are replaced, the callers need to be adapted anyway as the SWT code will otherwise not compile anymore. --- .../win32/org/eclipse/swt/accessibility/Accessible.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java index c79dd7d3af..56bb797346 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/win32/org/eclipse/swt/accessibility/Accessible.java @@ -3847,6 +3847,7 @@ int get_cellAt(int row, int column, long ppCell) { } /* IAccessibleTable2::get_caption([out] ppAccessible) */ + @SuppressWarnings("deprecation") int get_caption(long ppAccessible) { if (control != null && control.isDisposed()) return COM.CO_E_OBJNOTCONNECTED; AccessibleTableEvent event = new AccessibleTableEvent(this); @@ -4035,6 +4036,7 @@ int get_selectedRows(long ppSelectedRows, long pNRows) { } /* IAccessibleTable2::get_summary([out] ppAccessible) */ + @SuppressWarnings("deprecation") int get_summary(long ppAccessible) { if (control != null && control.isDisposed()) return COM.CO_E_OBJNOTCONNECTED; AccessibleTableEvent event = new AccessibleTableEvent(this);