summaryrefslogtreecommitdiff
path: root/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/AnnotationArgs.java
blob: c2a69a7fbad63227eed58557772678e69cf40af5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@interface Foo {
  String value(); 
}

@Foo(<error descr="Attribute value must be constant">"myclass: " + Bar.class</error>)
class Bar {}

@Foo("myclass: Bazz")
class Bazz{}

@Foo("myclass:" + "Bazz1")
class Bazz1{}

@Foo(Const.CONST + Const.CONST)
class Bazz2{}

@Foo(<error descr="Incompatible types. Found: 'java.lang.Class<FooBar>', required: 'java.lang.String'">FooBar.class</error>)
class FooBar {}

class Const {
  public static final String CONST = "const";
}