From 4cd8b4d407c989028b9d2eb38acb2278c4e7d4bb Mon Sep 17 00:00:00 2001 From: Lars Vogel Date: Wed, 4 Dec 2024 15:09:36 +0100 Subject: [PATCH 1/2] Remove unused local variable Used the new JDT cleanup to remove unused local variables --- .../ui/refactoring/history/RefactoringPropertyPage.java | 3 +-- .../search/internal/ui/text/ReplaceConfigurationPage.java | 3 +-- .../src/org/eclipse/ui/texteditor/FindReplaceDialog.java | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/bundles/org.eclipse.ltk.ui.refactoring/src/org/eclipse/ltk/internal/ui/refactoring/history/RefactoringPropertyPage.java b/bundles/org.eclipse.ltk.ui.refactoring/src/org/eclipse/ltk/internal/ui/refactoring/history/RefactoringPropertyPage.java index 454f3cd35ae..4980d5dfe89 100644 --- a/bundles/org.eclipse.ltk.ui.refactoring/src/org/eclipse/ltk/internal/ui/refactoring/history/RefactoringPropertyPage.java +++ b/bundles/org.eclipse.ltk.ui.refactoring/src/org/eclipse/ltk/internal/ui/refactoring/history/RefactoringPropertyPage.java @@ -197,8 +197,7 @@ public final void widgetSelected(final SelectionEvent event) { fShareHistoryButton.setLayoutData(data); fShareHistoryButton.setSelection(hasSharedRefactoringHistory()); - @SuppressWarnings("unused") - Label label= new Label(composite, SWT.NONE); + new Label(composite, SWT.NONE); final IProject project= getCurrentProject(); if (project != null) { diff --git a/bundles/org.eclipse.search/search/org/eclipse/search/internal/ui/text/ReplaceConfigurationPage.java b/bundles/org.eclipse.search/search/org/eclipse/search/internal/ui/text/ReplaceConfigurationPage.java index 62a2b5a7aa7..c2f12c2a943 100644 --- a/bundles/org.eclipse.search/search/org/eclipse/search/internal/ui/text/ReplaceConfigurationPage.java +++ b/bundles/org.eclipse.search/search/org/eclipse/search/internal/ui/text/ReplaceConfigurationPage.java @@ -127,8 +127,7 @@ public void createControl(Composite parent) { new char[0], true); - @SuppressWarnings("unused") - Label label = new Label(result, SWT.NONE); + new Label(result, SWT.NONE); fReplaceWithRegex= new Button(result, SWT.CHECK); fReplaceWithRegex.setText(SearchMessages.ReplaceConfigurationPage_isRegex_label); fReplaceWithRegex.addSelectionListener(new SelectionAdapter() { diff --git a/bundles/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceDialog.java b/bundles/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceDialog.java index ee8ea79abb4..8511b5607b3 100644 --- a/bundles/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceDialog.java +++ b/bundles/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceDialog.java @@ -339,8 +339,7 @@ public void widgetSelected(SelectionEvent e) { }); setGridData(fSelectAllButton, SWT.FILL, true, SWT.FILL, false); - @SuppressWarnings("unused") - Label filler = new Label(panel, SWT.NONE); // filler + new Label(panel, SWT.NONE); fReplaceFindButton = makeButton(panel, FindReplaceMessages.FindReplace_ReplaceFindButton_label, 103, false, new SelectionAdapter() { From a062de1862476bf6d9ece96f63734aa60f1d841d Mon Sep 17 00:00:00 2001 From: Eclipse Platform Bot Date: Wed, 4 Dec 2024 14:16:20 +0000 Subject: [PATCH 2/2] Version bump(s) for 4.35 stream --- bundles/org.eclipse.search/META-INF/MANIFEST.MF | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.eclipse.search/META-INF/MANIFEST.MF b/bundles/org.eclipse.search/META-INF/MANIFEST.MF index 54eb0583c69..831eb9da3a8 100644 --- a/bundles/org.eclipse.search/META-INF/MANIFEST.MF +++ b/bundles/org.eclipse.search/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %pluginName Bundle-SymbolicName: org.eclipse.search; singleton:=true -Bundle-Version: 3.17.0.qualifier +Bundle-Version: 3.17.100.qualifier Bundle-Activator: org.eclipse.search.internal.ui.SearchPlugin Bundle-ActivationPolicy: lazy Bundle-Vendor: %providerName