Fix for KT-15027 J2K: Annotations are set on functions, but not on property accessors
#KT-15027 fixed
This commit is contained in:
committed by
Simon Ogorodnik
parent
5071baf970
commit
73ea0e8460
@@ -0,0 +1,18 @@
|
||||
@interface An {
|
||||
String value();
|
||||
}
|
||||
|
||||
|
||||
public class Test {
|
||||
private int id;
|
||||
|
||||
@An(value = "get")
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
@An(value = "set")
|
||||
public void setId(int id) {
|
||||
this.id = id
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user