Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add aliases to @Getter @Setter #825

Open
lombokissues opened this issue Jul 14, 2015 · 3 comments
Open

Add aliases to @Getter @Setter #825

lombokissues opened this issue Jul 14, 2015 · 3 comments

Comments

@lombokissues
Copy link

Migrated from Google Code (issue 790)

@lombokissues
Copy link
Author

👤 guai@inbox.ru   🕗 Feb 19, 2015 at 09:04 UTC

It would be nice to have aliases in @ Getter and @ Setter

In my case it would be handy in multilingual project
For example:

@ Getter(aliases={"ключ"}) private long key;

As a shortcut for:

private long key;

public long getKey() { return key; }

public long ключ() { return key; }

//or maybe like this: (or both) [or configurable]

public long getКлюч() { return key; } // javabean style

//both should work, but its pain to type "getКлюч" changing kb layout every time.

I'm using jruby (multilingual DSL) where both styles accessible as property this way: object.ключ
In groovy only javabean-style accessible as property.

Labels: -Type-Enhancement

@lombokissues
Copy link
Author

👤 guai@inbox.ru   🕗 Feb 19, 2015 at 09:12 UTC

Standalone @ Aliases would be handy too for methods

@lombokissues
Copy link
Author

End of migration

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

No branches or pull requests

1 participant