Skip to content

Commit

Permalink
[WIP] Some more module-related problem ids
Browse files Browse the repository at this point in the history
- Also fix their ranges

Signed-off-by: David Thompson <davthomp@redhat.com>
  • Loading branch information
datho7561 committed Sep 27, 2024
1 parent 4ba5329 commit 972a938
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ private org.eclipse.jface.text.Position getDiagnosticPosition(Diagnostic<? exten
&& diagnosticPath.getParentPath() != null
&& diagnosticPath.getParentPath().getLeaf() instanceof JCMethodDecl methodDecl) {
return getPositionByNodeRangeOnly(jcDiagnostic, methodDecl.getReturnType());
} else if (problemId == IProblem.ProviderMethodOrConstructorRequiredForServiceImpl) {
} else if (problemId == IProblem.ProviderMethodOrConstructorRequiredForServiceImpl || problemId == IProblem.AbstractServiceImplementation) {
return getPositionByNodeRangeOnly(jcDiagnostic, (JCTree)diagnosticPath.getLeaf());
} else if (problemId == IProblem.SwitchExpressionsYieldMissingDefaultCase
&& diagnosticPath.getLeaf() instanceof JCTree.JCSwitchExpression switchExpr) {
Expand Down

0 comments on commit 972a938

Please sign in to comment.