Skip to content

Conversation

orkes-harshil
Copy link
Contributor

@orkes-harshil orkes-harshil commented Apr 8, 2025

Description :
This PR moves all java sdk POJOs to lombok annotations.
We will have
@DaTa
@builder
@NoArgsConstructor
@AllArgsConstructor

Our goal is to not break current backward compatibility. We have added unit tests in a previous PR for all the accessors and constructors which are deleted as part of Lombokisation.

This will be a base on which we will sync sdk POJOs with server POJOs.

@jmigueprieto jmigueprieto marked this pull request as draft April 9, 2025 12:16
@jmigueprieto
Copy link
Contributor

This PR contains too many breaking and potentially breaking changes. Shouldn't be merged.


private final String message = "Bulk Request has been processed.";
private String message = "Bulk Request has been processed.";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is making private final String message which was meant to remain private and immutable accessible trough a getter (unnecessarily) and mutable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we want this field to be immutable ?
Why do we want to have special treatment ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@orkes-harshil take a look at the code. Check how message is being used.

@orkes-harshil orkes-harshil force-pushed the lombok-pojo-modification branch from d8e7489 to 7c317bc Compare April 14, 2025 07:12
@orkes-harshil orkes-harshil marked this pull request as ready for review April 14, 2025 10:57
@orkes-harshil orkes-harshil merged commit 239e64f into main Apr 23, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants