Skip to content

Commit af8b01c

Browse files
committed
Dev: fix enum empty constructor requirement
1 parent f83af42 commit af8b01c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

compiler/src/main/java/com/readdle/codegen/SwiftValueDescriptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class SwiftValueDescriptor {
8787
}
8888
}
8989

90-
if (!hasEmptyConstructor) {
90+
if (!hasEmptyConstructor && classElement.getKind() != ElementKind.ENUM) {
9191
// No empty constructor found
9292
throw new IllegalArgumentException(String.format("The class %s must provide an public empty default constructor",
9393
classElement.getQualifiedName().toString()));

0 commit comments

Comments
 (0)