Skip to content

Commit 4f03903

Browse files
committed
fix: Fixed an issue causing problems if there is no comment for a field.
1 parent 890908d commit 4f03903

File tree

1 file changed

+1
-1
lines changed
  • code-generation/protocol-base-mspec/src/main/java/org/apache/plc4x/plugins/codegenerator/language/mspec/model/fields

1 file changed

+1
-1
lines changed

code-generation/protocol-base-mspec/src/main/java/org/apache/plc4x/plugins/codegenerator/language/mspec/model/fields/DefaultField.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public boolean equals(Object o) {
6969
if (this == o) return true;
7070
if (o == null || getClass() != o.getClass()) return false;
7171
DefaultField that = (DefaultField) o;
72-
return Objects.equals(attributes, that.attributes) && comment.equals(that.comment);
72+
return Objects.equals(attributes, that.attributes) && Objects.equals(comment, that.comment);
7373
}
7474

7575
@Override

0 commit comments

Comments
 (0)