Skip to content

Commit

Permalink
fix: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jessewb786 committed Jan 25, 2025
1 parent 04f5cd3 commit caaeee3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/generators/java/renderers/ClassRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@ export class ClassRenderer extends JavaRenderer<ConstrainedObjectModel> {
this.dependencyManager.addModelDependency(i);
}

const inheritanceKeyworkd = this.model.options.isExtended ? 'extends' : 'implements';
const inheritanceKeyworkd = this.model.options.isExtended
? 'extends'
: 'implements';

return `public ${abstractType} ${this.model.name} ${inheritanceKeyworkd} ${parents
.map((i) => i.name)
.join(', ')} {
return `public ${abstractType} ${
this.model.name
} ${inheritanceKeyworkd} ${parents.map((i) => i.name).join(', ')} {
${this.indent(this.renderBlock(content, 2))}
}`;
}
Expand Down Expand Up @@ -166,7 +168,7 @@ export const isDiscriminatorOrDictionary = (
property: ConstrainedObjectPropertyModel
): boolean =>
model.options.discriminator?.discriminator ===
property.unconstrainedPropertyName ||
property.unconstrainedPropertyName ||
property.property instanceof ConstrainedDictionaryModel;

export const JAVA_DEFAULT_CLASS_PRESET: ClassPresetType<JavaOptions> = {
Expand Down

0 comments on commit caaeee3

Please sign in to comment.