Skip to content

Commit de09b63

Browse files
authored
Merge pull request #456 from swagger-api/codegen-issue9203
fix for Bug generating Boolean type property
2 parents bd861a0 + 963a663 commit de09b63

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main/resources/handlebars/JavaJaxRS/cxf/pojo.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {{#interfa
7878
return {{name}};
7979
}{{/is}}{{/is}}{{#is this 'enum'}}{{#is this 'map-container'}}public {{{datatypeWithEnum}}} {{#is this 'boolean'}}is{{/is}}{{getter}}() {
8080
return {{name}};
81-
}{{/is}}{{/is}}{{#isNot this 'enum'}}public {{{datatypeWithEnum}}} {{#is this 'boolean'}}is{{/is}}{{getter}}() {
81+
}{{/is}}{{/is}}{{#isNot this 'enum'}}public {{{datatypeWithEnum}}} {{getter}}() {
8282
return {{name}};
8383
}{{/isNot}}
8484

src/test/java/io/swagger/codegen/v3/generators/java/JavaModelTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,4 +1032,5 @@ public void generateModel() throws Exception {
10321032
Assert.assertTrue(orderFile.exists());
10331033
folder.delete();
10341034
}
1035+
10351036
}

0 commit comments

Comments
 (0)