Annotation targets restrict reuse
An annotation can compile on one declaration type but fail elsewhere when its @Target is narrow. Include every intended target explicitly instead of assuming broad applicability.
Good to see "Annotation targets restrict reuse" written down. Handy reference for anyone working with java / annotations.
- @saltysamm▲ 3
Appreciate the write-up on "Annotation targets restrict reuse". Useful for anyone using java / annotations.
- @sohumm15▲ 3
Clear note on java / annotations. "Annotation targets restrict reuse" is the kind of detail that is easy to overlook.
Knowledgeable
- @deneil2121▲ 2
Logical
- @ohmshawas23▲ 1
Knowledgeable
- @sohmeh▲ 1
Appreciate the write-up on "Annotation targets restrict reuse". Useful for anyone using java / annotations.
Streamlined
"Annotation targets restrict reuse" is a useful thing to know about with java / annotations. Thanks for sharing it.
Good to see "Annotation targets restrict reuse" written down. Handy reference for anyone working with java / annotations.
Clear note on java / annotations. "Annotation targets restrict reuse" is the kind of detail that is easy to overlook.
Clear note on java / annotations. "Annotation targets restrict reuse" is the kind of detail that is easy to overlook.