mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 21:11:28 +07:00
This commit is contained in:
@@ -38,4 +38,8 @@ public class JavaDocInspectionTest extends InspectionTestCase {
|
||||
public void testDoubleMissedTags() throws Exception{
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testMissedThrowsTag() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -278,7 +278,7 @@ inspection.javadoc.method.problem.missing.param.tag=Required tag {0} is missing
|
||||
inspection.javadoc.problem.duplicate.param=Duplicate @param tag for parameter ''{0}''
|
||||
inspection.javadoc.problem.duplicate.throws=Duplicate @throws or @exception tag for exception ''{0}''
|
||||
inspection.javadoc.problem.duplicate.tag=Duplicate @{0} tag
|
||||
inspection.javadoc.problem.add.tag=Add tag @{0}
|
||||
inspection.javadoc.problem.add.tag=Add tag @{0} {1}
|
||||
inspection.javadoc.problem.add.tag.family=Add missing javadoc tag
|
||||
inspection.javadoc.problem.add.param.tag=Add tag @param for parameter ''{0}''
|
||||
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems>
|
||||
<problem>
|
||||
<file>Test.java</file>
|
||||
<line>5</line>
|
||||
<text_range start="79" end="82" />
|
||||
<method>
|
||||
<name>void foo()</name>
|
||||
<display_name>foo()</display_name>
|
||||
<package><default></package>
|
||||
<class>
|
||||
<name>Test</name>
|
||||
<display_name>Test</display_name>
|
||||
</class>
|
||||
</method>
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Declaration has javadoc problems</problem_class>
|
||||
<description>Required tag <code>@throws</code> java.io.IOException is missing</description>
|
||||
</problem>
|
||||
</problems>
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
class Test {
|
||||
/**
|
||||
*@throws java.lang.ArrayIndexOutOfBoundsException
|
||||
*/
|
||||
void foo() throws java.io.IOException, java.lang.ArrayIndexOutOfBoundsException {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user