method setCode on MethodClass was refactored