Skip to content

Commit caf73bf

Browse files
committed
Add an indirect @beanGetter example
1 parent c2c937e commit caf73bf

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

tests/run/i15318.check

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
inspecting field value @JsonProperty
2+
inspecting field value2 @JsonProperty
23
inspecting method getValue @JsonProperty
4+
inspecting method getValue2 @JsonProperty
35
inspecting method setValue
6+
inspecting method setValue2
47
inspecting method value
8+
inspecting method value2
9+
inspecting method value2_$eq
510
inspecting method value_$eq
611
inspecting constructor TestBeanProperty
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
import scala.annotation.meta.beanGetter
22
import scala.beans.BeanProperty
33

4+
type BeanGetterJsonProperty = JsonProperty @beanGetter
5+
46
class TestBeanProperty {
57

68
@(JsonProperty @beanGetter)(value = "REAL_VALUE")
79
@BeanProperty
810
var value: String = _
911

12+
@BeanGetterJsonProperty(value = "REAL_VALUE2")
13+
@BeanProperty
14+
var value2: String = _
15+
1016
}

0 commit comments

Comments
 (0)