unify javadoc warnings: @return tag should be highlighted if description is missed (IDEA-47680)

This commit is contained in:
anna
2010-02-24 22:00:55 +03:00
parent 0741c92da2
commit f766605a48
3 changed files with 4 additions and 4 deletions

View File

@@ -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);
}
}

View File

@@ -1,6 +1,6 @@
class MissingRetunDescription {
/**
* @return<EOLWarning/>
* <warning>@return</warning>
* @throws Exception in some case
*/
public boolean foo() throws Exception {

View File

@@ -2,7 +2,7 @@ class Test {
/**
* @param <error>i</error> here description goes
* @return<EOLWarning/>
* <warning>@return</warning>
*/
int d(){return 1;}
}