voonhous opened a new pull request, #18957: URL: https://github.com/apache/hudi/pull/18957
### Describe the issue this Pull Request addresses This PR continues the effort to reduce boilerplate in the `hudi-common` module by applying [Project Lombok](https://projectlombok.org/) annotations. It replaces manual `Logger` instantiation, hand-written getters, `equals`/`hashCode`, `toString`, and empty constructors with their Lombok equivalents. Pure refactor: no runtime logic changes. This is **part 8** of the series (part 7: #18944) and is scoped to: - `hudi-common/.../common/table/timeline/` (incl. `versioning/v1` and `versioning/v2`) - `hudi-common/.../common/table/view/` ### Summary and Changelog Applies Lombok annotations across **24 classes**, removing hand-written boilerplate (net -184 lines). | Annotation | Replaces | | --- | --- | | `@Slf4j` | manual `Logger LOG = LoggerFactory.getLogger(...)` | | `@Getter` | manual accessors (with `AccessLevel.NONE`/`PACKAGE` where scoped) | | `@AllArgsConstructor` / `@NoArgsConstructor` | explicit constructors | | `@EqualsAndHashCode` | hand-written `equals`/`hashCode` (`onlyExplicitlyIncluded = true` where the originals used a subset of fields) | | `@ToString` | hand-written `toString` | | `@Accessors(fluent = true)` | preserve existing fluent method names (e.g. `TimelineDiffResult#canSyncIncrementally()`) | ### Impact - **Public API:** None. All generated accessors keep the original method names. - **User experience:** No visible change. - **Performance:** None (compile-time code generation). - **Code health:** Fewer lines, standardized logging and accessor patterns. ### Risk Level `none` Pure refactor using standard Lombok annotations; no business logic was modified. ### Documentation Update none ### Contributor's checklist - [x] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute) - [x] Enough context is provided in the sections above - [x] Adequate tests were added if applicable -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
