remove unecessary name attribute from method annotation