Skip to content

Conversation

JNGDSOFT
Copy link

This PR is for the issue #3835

Adds a new annotation that combines Getter and Setter annotations into a single one Gset

I may have missed some required configurations details - particularly, this annotation doesn´t support parameters yet and I haven't been able to test it fully due to some local environment issues, that´s why I wanted to share this early version in case it's helpful or can be built upon.

Feedback is very welcome. Thanks!

PD: "GSet" name were based on a suggestion from @fabriciuMF

@rust2
Copy link

rust2 commented Jul 6, 2025

I think the name @Property would suit it better

*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.SOURCE)
public @interface GSet { }
Copy link

@rust2 rust2 Jul 6, 2025

Choose a reason for hiding this comment

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

I think it should have lombok.AccessLevel, AnyAnnotation[] and lazy flag as @Getter and @Setter both have?

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