File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
src/generators/java/renderers Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -45,11 +45,13 @@ export class ClassRenderer extends JavaRenderer<ConstrainedObjectModel> {
4545 this . dependencyManager . addModelDependency ( i ) ;
4646 }
4747
48- const inheritanceKeyworkd = this . model . options . isExtended ? 'extends' : 'implements' ;
48+ const inheritanceKeyworkd = this . model . options . isExtended
49+ ? 'extends'
50+ : 'implements' ;
4951
50- return `public ${ abstractType } ${ this . model . name } ${ inheritanceKeyworkd } ${ parents
51- . map ( ( i ) => i . name )
52- . join ( ', ' ) } {
52+ return `public ${ abstractType } ${
53+ this . model . name
54+ } ${ inheritanceKeyworkd } ${ parents . map ( ( i ) => i . name ) . join ( ', ' ) } {
5355${ this . indent ( this . renderBlock ( content , 2 ) ) }
5456}` ;
5557 }
@@ -166,7 +168,7 @@ export const isDiscriminatorOrDictionary = (
166168 property : ConstrainedObjectPropertyModel
167169) : boolean =>
168170 model . options . discriminator ?. discriminator ===
169- property . unconstrainedPropertyName ||
171+ property . unconstrainedPropertyName ||
170172 property . property instanceof ConstrainedDictionaryModel ;
171173
172174export const JAVA_DEFAULT_CLASS_PRESET : ClassPresetType < JavaOptions > = {
You can’t perform that action at this time.
0 commit comments