mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
unify javadoc warnings: @return tag should be highlighted if description is missed (IDEA-47680)
This commit is contained in:
@@ -649,8 +649,8 @@ public class JavaDocLocalInspection extends BaseLocalInspectionTool {
|
||||
if ("return".equals(tag.getName())) {
|
||||
if (extractTagDescription(tag).length() == 0) {
|
||||
String message = InspectionsBundle.message("inspection.javadoc.method.problem.missing.tag.description", "<code>@return</code>");
|
||||
ProblemDescriptor descriptor = manager.createProblemDescriptor(tag.getNameElement(), message, null, ProblemHighlightType.GENERIC_ERROR_OR_WARNING,
|
||||
isOnTheFly, true);
|
||||
ProblemDescriptor descriptor = manager.createProblemDescriptor(tag.getNameElement(), message, (LocalQuickFix)null, ProblemHighlightType.GENERIC_ERROR_OR_WARNING,
|
||||
isOnTheFly);
|
||||
problems.add(descriptor);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
class MissingRetunDescription {
|
||||
/**
|
||||
* @return<EOLWarning/>
|
||||
* <warning>@return</warning>
|
||||
* @throws Exception in some case
|
||||
*/
|
||||
public boolean foo() throws Exception {
|
||||
|
||||
@@ -2,7 +2,7 @@ class Test {
|
||||
|
||||
/**
|
||||
* @param <error>i</error> here description goes
|
||||
* @return<EOLWarning/>
|
||||
* <warning>@return</warning>
|
||||
*/
|
||||
int d(){return 1;}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user