Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.3 rc1
-
Component/s: XML code generator
-
Labels:None
Description
This is a refactoring task aiming to replace custom implementations of functions which are already defined within FieldInfo (so to say, have the same functionality/result). For example, in the FieldMemberAndAccess#createGetterMethod(..) the getter-name is constructed by:
String mname = fieldInfo.getMethodSuffix();
...
method = new JMethod(FieldInfo.METHOD_PREFIX_GET + mname, jType,"the value of field '" + mname + "'.");
The bold text should be replaced by fieldInfo.getReadMethod which does exactly the same as above.
Of course I meant the FieldMemberAndAccessorFactory; sorry for the caused confusion!