Scala Type aliases for annotations

后端 未结 3 743
栀梦
栀梦 2021-01-02 02:33

In many points of my code, three annotations appears together:

@BeanProperty
@(SpaceProperty @beanGetter)(nullValue=\"0\")

where null

3条回答
  •  一个人的身影
    2021-01-02 03:03

    No. You can write a macro to do this in Scala 2.10, I think (but the documentation isn't available at the moment, so I can't check).

提交回复
热议问题