[java] replaced annotation write code with a more correct and more efficient solution
[java] replaced annotation write code with a more correct and more efficient solution

skill-lang/skill,skill-lang/skill