How to use Java annotation