added @Target annotations
Merge branch '2.3' into 2.4

* 2.3:
  added @Target annotations