Skip to content

chore: [ANDROSDK-2289] Remove ObjectStyle.Builder class#2594

Merged
vgarciabnz merged 4 commits intodevelopfrom
ANDROSDK-2289
May 5, 2026
Merged

chore: [ANDROSDK-2289] Remove ObjectStyle.Builder class#2594
vgarciabnz merged 4 commits intodevelopfrom
ANDROSDK-2289

Conversation

@vgarciabnz
Copy link
Copy Markdown
Member

Removes the ObjectWithStyle.Builder inner interface from the ObjectWithStyle interface. This inner interface was used to type the builders and indicate that they include a style(...) builder property, which was used in the DTO -> domain and DB -> domain conversions. This inner interface introduced some complexity when it comes to inheritance, and it was even more complex with the approach of generated builders for data class. So it was better to just remove it.

This PR does:

  • Change the ObjectWithStyle to a simple interface with the style() property.
  • Add the ObjectWithStyleKt interface for the data classes.
  • Create a standard toDomain method for DTO and DB conversions.
  • Modify classes that extend ObjectWithStyle to remove the builder extension and add the builder property explicitly.

@vgarciabnz vgarciabnz requested review from andresmr and taridepaco May 4, 2026 11:30
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 4, 2026


public abstract Builder fieldMask(String fieldMask);

public abstract Builder style(ObjectStyle style);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why did this model have the style builder setter already here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It guess it was unintentional, it shouldn't have been there.

@vgarciabnz vgarciabnz merged commit 95c1027 into develop May 5, 2026
11 checks passed
@vgarciabnz vgarciabnz deleted the ANDROSDK-2289 branch May 5, 2026 08:52
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.

2 participants