duplicated annotations

This commit is contained in:
anna
2010-08-20 12:37:38 +04:00
parent 1891dd5c2a
commit 12ef70ac18
2 changed files with 8 additions and 0 deletions

View File

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

View File

@@ -13,6 +13,10 @@ public class LightAdvHighlightingJdk7Test extends LightDaemonAnalyzerTestCase {
doTest(BASE_PATH + "/" + getTestName(false) + ".java", checkWarnings, checkInfos);
}
public void testDuplicatedAnnotations() throws Exception {
doTest(false, false);
}
public void testSwitchByString() throws Exception {
doTest(true, false);
}