|
1 | 1 | /******************************************************************************* |
2 | | - * Copyright (c) 2000, 2025 IBM Corporation and others. |
| 2 | + * Copyright (c) 2000, 2026 IBM Corporation and others. |
3 | 3 | * All rights reserved. This program and the accompanying materials |
4 | 4 | * are made available under the terms of the Eclipse Public License 2.0 |
5 | 5 | * which accompanies this distribution, and is available at |
|
75 | 75 | import org.eclipse.jdt.ls.core.internal.handlers.OrganizeImportsHandler; |
76 | 76 | import org.eclipse.jdt.ls.core.internal.text.correction.ModifierCorrectionSubProcessor; |
77 | 77 | import org.eclipse.jdt.ls.core.internal.text.correction.NullAnnotationsCorrectionProcessor; |
| 78 | +import org.eclipse.jdt.ls.core.internal.text.correction.TypeArgumentMismatchSubProcessor; |
78 | 79 | import org.eclipse.jdt.ls.core.internal.text.correction.VarargsWarningsSubProcessor; |
79 | 80 | import org.eclipse.jdt.ui.cleanup.CleanUpOptions; |
80 | 81 | import org.eclipse.jdt.ui.text.java.IInvocationContext; |
@@ -453,34 +454,23 @@ private void process(CodeActionParams params, IInvocationContext context, IProbl |
453 | 454 | case IProblem.DeadCode: |
454 | 455 | LocalCorrectionsSubProcessor.getUnreachableCodeProposals(context, problem, proposals); |
455 | 456 | break; |
456 | | - // case IProblem.DiamondNotBelow17: |
457 | | - // TypeArgumentMismatchSubProcessor.getInferDiamondArgumentsProposal(context, |
458 | | - // problem, proposals); |
459 | | - // //$FALL-THROUGH$ |
460 | | - // case IProblem.LambdaExpressionNotBelow18: |
461 | | - // LocalCorrectionsSubProcessor.getConvertLambdaToAnonymousClassCreationsProposals(context, |
462 | | - // problem, proposals); |
463 | | - // //$FALL-THROUGH$ |
464 | | - // case IProblem.NonGenericType: |
465 | | - // TypeArgumentMismatchSubProcessor.removeMismatchedArguments(context, |
466 | | - // problem, proposals); |
467 | | - // break; |
468 | | - // case IProblem.MissingOverrideAnnotation: |
469 | | - // case |
470 | | - // IProblem.MissingOverrideAnnotationForInterfaceMethodImplementation: |
471 | | - // ModifierCorrectionSubProcessor.addOverrideAnnotationProposal(context, |
472 | | - // problem, proposals); |
473 | | - // break; |
| 457 | + case IProblem.NonGenericType: |
| 458 | + TypeArgumentMismatchSubProcessor.removeMismatchedArguments(context, problem, proposals); |
| 459 | + break; |
| 460 | + case IProblem.MissingOverrideAnnotation: |
| 461 | + case IProblem.MissingOverrideAnnotationForInterfaceMethodImplementation: |
| 462 | + ModifierCorrectionSubProcessor.addOverrideAnnotationProposal(context, problem, proposals); |
| 463 | + break; |
474 | 464 | case IProblem.MethodMustOverride: |
475 | 465 | case IProblem.MethodMustOverrideOrImplement: |
476 | 466 | ModifierCorrectionSubProcessor.removeOverrideAnnotationProposal(context, problem, proposals); |
477 | 467 | break; |
478 | | - // case IProblem.FieldMissingDeprecatedAnnotation: |
479 | | - // case IProblem.MethodMissingDeprecatedAnnotation: |
480 | | - // case IProblem.TypeMissingDeprecatedAnnotation: |
481 | | - // ModifierCorrectionSubProcessor.addDeprecatedAnnotationProposal(context, |
482 | | - // problem, proposals); |
483 | | - // break; |
| 468 | + case IProblem.FieldMissingDeprecatedAnnotation: |
| 469 | + case IProblem.MethodMissingDeprecatedAnnotation: |
| 470 | + case IProblem.TypeMissingDeprecatedAnnotation: |
| 471 | + case IProblem.MemberOfDeprecatedTypeNotDeprecated: |
| 472 | + ModifierCorrectionSubProcessor.addDeprecatedAnnotationProposal(context, problem, proposals); |
| 473 | + break; |
484 | 474 | case IProblem.OverridingDeprecatedMethod: |
485 | 475 | case IProblem.OverridingDeprecatedSinceVersionMethod: |
486 | 476 | case IProblem.OverridingTerminallyDeprecatedMethod: |
|
0 commit comments