Skip to content

Commit

Permalink
should not be compared with ==. This is a reference comparison operat…
Browse files Browse the repository at this point in the history
…or. Use .equals() instead.
  • Loading branch information
Simply007 committed Jul 4, 2023
1 parent 9f22829 commit 7d7e13f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public JavaFile generateSource(ContentType type) {
if (typeName != null) {
//Add the field
String fieldName = CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL, element.getKey());
Class annoClass = element.getValue().getType() == "modular_content" ?
Class annoClass = element.getValue().getType().equals("modular_content") ?
ContentItemMapping.class : ElementMapping.class;
fieldSpecs.add(
FieldSpec.builder(typeName, fieldName)
Expand Down

0 comments on commit 7d7e13f

Please sign in to comment.