-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Lombok and Findbug #669
Comments
👤 charles.fendt@ariadnext.com 🕗 Jan 31, 2014 at 14:05 UTC What steps will reproduce the problem? Findbug detects a local variable for the return it is like writing : Object obj = xxx; It's more logic (and need less RAM) to write : return xxx; This is with Lombok version 1.12.x, but i suppose it is the same with older version |
👤 r.spilker 🕗 Jan 31, 2014 at 14:09 UTC I'm pretty sure that it is NOT true that more RAM is being used. Also, what is the code it is complaining about? |
👤 charles.fendt@ariadnext.com 🕗 Feb 01, 2014 at 07:19 UTC The code to reproduce is quiet simple: And if i'm sure that the jit do all, a new local is a new pointer in the stack... Si 4 bytes everytime i call the method... |
👤 Maaartinus 🕗 Feb 02, 2014 at 00:26 UTC Yes, when the interpreter calls the method, the stack needs 4 more bytes. When the method returns, you get them back. So your program needs up to 4 more bytes (it can't be more as the method calls nothing, no recursion). That said, the size of generated bytecode might matter a bit and so might the interpreted speed. |
👤 r.spilker 🕗 Feb 04, 2014 at 22:02 UTC I don't know what to do with this issue. There are several parts:
Any suggestions? |
👤 r.spilker 🕗 Feb 04, 2014 at 22:06 UTC
|
👤 reinierz 🕗 Feb 06, 2014 at 19:52 UTC We have 2 bits of lombok policy that are pertinent to this issue:
|
👤 reinierz 🕗 Feb 01, 2015 at 23:24 UTC You can now tell findbugs to stop generating warnings on lombok generated code: issue #737 |
End of migration |
Migrated from Google Code (issue 634)
The text was updated successfully, but these errors were encountered: