How to write annotations in Java