[java] method annotation wrapping