Skip to content

Commit 2a5ab78

Browse files
committed
Merge pull request #1296 from xhh/fix-enum-constructor
Fix hard-coded constructor name of enum class in Java okhttp-gson client
2 parents 0380fc5 + e5a4ef3 commit 2a5ab78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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

77
private String value;
88

9-
StatusEnum(String value) {
9+
{{datatypeWithEnum}}(String value) {
1010
this.value = value;
1111
}
1212

0 commit comments

Comments
 (0)