We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f22829 commit 7d7e13fCopy full SHA for 7d7e13f
delivery-sdk-generators/src/main/java/kontent/ai/delivery/generators/CodeGenerator.java
@@ -140,7 +140,7 @@ public JavaFile generateSource(ContentType type) {
140
if (typeName != null) {
141
//Add the field
142
String fieldName = CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, element.getKey());
143
- Class annoClass = element.getValue().getType() == "modular_content" ?
+ Class annoClass = element.getValue().getType().equals("modular_content") ?
144
ContentItemMapping.class : ElementMapping.class;
145
fieldSpecs.add(
146
FieldSpec.builder(typeName, fieldName)
0 commit comments