mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
duplicated annotations
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
class C{
|
||||||
|
@<error descr="Duplicate annotation">Deprecated</error> @<error descr="Duplicate annotation">Deprecated</error>
|
||||||
|
void foo(@<error descr="Duplicate annotation">Deprecated</error> @<error descr="Duplicate annotation">Deprecated</error> int x){}
|
||||||
|
}
|
||||||
@@ -13,6 +13,10 @@ public class LightAdvHighlightingJdk7Test extends LightDaemonAnalyzerTestCase {
|
|||||||
doTest(BASE_PATH + "/" + getTestName(false) + ".java", checkWarnings, checkInfos);
|
doTest(BASE_PATH + "/" + getTestName(false) + ".java", checkWarnings, checkInfos);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testDuplicatedAnnotations() throws Exception {
|
||||||
|
doTest(false, false);
|
||||||
|
}
|
||||||
|
|
||||||
public void testSwitchByString() throws Exception {
|
public void testSwitchByString() throws Exception {
|
||||||
doTest(true, false);
|
doTest(true, false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user