Skip to content

Commit 909b9ad

Browse files
committed
Remove @SuppressWarnings annotation no longer raised by ecj, take 2
Fixes remaining `@SuppressWarnings("deprecation")` annotations flagged as unnecessary by eclipse-jdt/eclipse.jdt.core#4564 See eclipse-jdt/eclipse.jdt.core#4553
1 parent 2bbef29 commit 909b9ad

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ToggleBreakpointAdapter.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1894,7 +1894,6 @@ public boolean canToggleBreakpointsWithEvent(IWorkbenchPart part, ISelection sel
18941894
* @return the type root or <code>null</code> if one cannot be derived
18951895
* @since 3.8
18961896
*/
1897-
@SuppressWarnings("deprecation")
18981897
private static String getCodeTemplate(ITextSelection textSelection, JavaEditor part) {
18991898
ITextViewer viewer = part.getViewer();
19001899
if (viewer == null) {
@@ -1906,7 +1905,6 @@ private static String getCodeTemplate(ITextSelection textSelection, JavaEditor p
19061905
return templateBuffer.get();
19071906
}
19081907

1909-
@SuppressWarnings("deprecation")
19101908
private static void doGetCodeTemplate(ITextSelection textSelection, JavaEditor part, ITextViewer viewer, TemplateContextType contextType, AtomicReference<String> templateBuffer) {
19111909
ITextEditor editor = getTextEditor(part);
19121910
if (editor == null) {

org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/contentassist/JavaDebugContentAssistProcessor.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ public class JavaDebugContentAssistProcessor implements IContentAssistProcessor
5656
private final IJavaDebugContentAssistContext fContext;
5757
private ContentAssistant fAssistant;
5858

59-
60-
@SuppressWarnings("deprecation")
6159
public JavaDebugContentAssistProcessor(IJavaDebugContentAssistContext context) {
6260
fContext = context;
6361
TemplateContextType contextType= JavaPlugin.getDefault().getTemplateContextRegistry().getContextType(JavaContextType.ID_ALL);

org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/JavaSnippetCompletionProcessor.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ public class JavaSnippetCompletionProcessor implements IContentAssistProcessor {
5353

5454
public JavaSnippetCompletionProcessor(JavaSnippetEditor editor) {
5555
fEditor= editor;
56-
@SuppressWarnings("deprecation")
5756
TemplateContextType contextType= JavaPlugin.getDefault().getTemplateContextRegistry().getContextType("java"); //$NON-NLS-1$
5857
if (contextType != null) {
5958
fTemplateEngine= new TemplateEngine(contextType);

0 commit comments

Comments
 (0)