If we do not have any parent properties, we should not generate a
free-standing super() call -- javac will do that for us.
Change-Id: Ib45ec29e9914f0f3eeef7e2d86ebb94fbd33aab1
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
«val propertyAndTopParentProperties = parentProperties + #[property]»
«val propFieldName = property.fieldName»
public «type.name»(«propertyAndTopParentProperties.asArgumentsDeclaration») {
- super(«parentProperties.asArguments»);
+ «IF !parentProperties.empty»
+ super(«parentProperties.asArguments»);
+ «ENDIF»
«IF restrictions !== null»
«checkArgument(property, restrictions, actualType, propFieldName)»
«ENDIF»