Skip to content

Commit 3e337ad

Browse files
committed
Add onlyExplicitlyIncluded to match other LST implementations
1 parent 0ae4fbc commit 3e337ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • rewrite-python/src/main/java/org/openrewrite/python/tree

rewrite-python/src/main/java/org/openrewrite/python/tree/Py.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ public <P> J acceptPython(PythonVisitor<P> v, P p) {
401401

402402
@ToString
403403
@FieldDefaults(makeFinal = true, level = AccessLevel.PRIVATE)
404-
@EqualsAndHashCode(callSuper = false)
404+
@EqualsAndHashCode(callSuper = false, onlyExplicitlyIncluded = true)
405405
@RequiredArgsConstructor
406406
@AllArgsConstructor(access = AccessLevel.PRIVATE)
407407
final class CompilationUnit implements Py, JavaSourceFile, SourceFile {

0 commit comments

Comments
 (0)