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

Using Wither.onMethod on class #770

Closed
lombokissues opened this issue Jul 14, 2015 · 5 comments
Closed

Using Wither.onMethod on class #770

lombokissues opened this issue Jul 14, 2015 · 5 comments

Comments

@lombokissues
Copy link

Migrated from Google Code (issue 735)

@lombokissues
Copy link
Author

👤 Maaartinus   🕗 Sep 11, 2014 at 08:48 UTC

  1. Annotate a class with @ Wither

Expected: It works.
Actual: Error: 'onMethod' is not supported for @ Wither on a type.

I could use

@ Wither(onMethod=@ __(@ SuppressFBWarnings))

it to get rid of findbugs errors a bit more globally. Instead, I have to put this on each String field.

I wonder if there's any reason for this. Actually, a configuration like HUSH_FINDBUGS as proposed in issue #737 would be better.

@lombokissues
Copy link
Author

👤 reinierz   🕗 Feb 01, 2015 at 23:29 UTC

Issue #737 has now been implemented, which solves the immediate problem.

@ Wither DOES support onMethod. However, onMethod in general is not supported on @ Wither, @ Setter, etc on types, just as the error reports. This is intentional.

@lombokissues
Copy link
Author

👤 reinierz   🕗 Feb 01, 2015 at 23:29 UTC

Duplicate of issue #737

@lombokissues
Copy link
Author

End of migration

@forresthopkinsa
Copy link

Related: #1653

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants