Skip to content

Commit d746894

Browse files
committed
Merge pull request #1168 from xhh/bug-enum-constructor
Fix bug of hard-coded enum name in Java client
2 parents 7225528 + 2c64e08 commit d746894

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/swagger-codegen/src/main/resources/Java/enumClass.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ public enum {{datatypeWithEnum}} {
33

44
private String value;
55

6-
StatusEnum(String value) {
6+
{{datatypeWithEnum}}(String value) {
77
this.value = value;
88
}
99

0 commit comments

Comments
 (0)