* added condition to only check for null in value assignmet if class has
one property (because then CheckNull is generated before assgnment)
Change-Id: I3bd18ec60347b3d1d5dec32e7bcafa432c56b5ad
Signed-off-by: Jan Hajnar <jhajnar@cisco.com>
«FOR p : properties»
«IF p.returnType.importedName.contains("[]")»
- this.«p.fieldName» = «p.fieldName» == null ? null : «p.fieldName».clone();
+ «IF genTO.typedef && !allProperties.empty && allProperties.size == 1 && allProperties.get(0).name
+ .equals("value")»
+ this.«p.fieldName» = «p.fieldName».clone();
+ «ELSE»
+ this.«p.fieldName» = «p.fieldName» == null ? null : «p.fieldName».clone();
+ «ENDIF»
«ELSE»
this.«p.fieldName» = «p.fieldName»;
«ENDIF»