Skip to content
Permalink
Browse files
GROOVY-10609: The default equals and hashCode implementations for emu…
…lated records don't have the pojo flag set for generation
  • Loading branch information
paulk-asert committed Apr 29, 2022
1 parent 5c468cd commit 3d0d43894beb3bdff978eb2f512611dd4dac83a7
Showing 1 changed file with 3 additions and 3 deletions.
@@ -207,7 +207,7 @@ private void doProcessRecordType(ClassNode cNode, PropertyHandler handler) {
} else {
ToStringASTTransformation.createToString(cNode, false, false, null,
null, true, false, false, true,
false, false, false, false, false,
false, false, false, false, true,
new String[]{"[", "]", "=", ", "});
}
}
@@ -217,8 +217,8 @@ private void doProcessRecordType(ClassNode cNode, PropertyHandler handler) {
createRecordEquals(cNode);
createRecordHashCode(cNode);
} else {
EqualsAndHashCodeASTTransformation.createEquals(cNode, false, false, false, null, null);
EqualsAndHashCodeASTTransformation.createHashCode(cNode, false, false, false, null, null);
EqualsAndHashCodeASTTransformation.createEquals(cNode, false, false, false, null, null, false, false, true);
EqualsAndHashCodeASTTransformation.createHashCode(cNode, false, false, false, null, null, false, false, true);
}
}

0 comments on commit 3d0d438

Please sign in to comment.