I have a lot of false positives for UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR when there is any use of annotations that would enforce the value to be initialized.
like:
org.hibernate.validator.constraints.NotEmpty
javax.annotation.PostConstruct
Discussion
Anonymous
-
2015-07-30
Also, there is a problem with lambdas. For example:
Actually there are two different problems. Lambda body is compiled into separate method which is analyzed just as normal method. FindBugs is not too smart currently to understand that this method can be called only from the filter method after an explicit check. By the way you can use method reference to get rid of warning: .filter(set::contains).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Also, there is a problem with lambdas. For example:
Last edit: Tagir Valeev 2015-10-08
Actually there are two different problems. Lambda body is compiled into separate method which is analyzed just as normal method. FindBugs is not too smart currently to understand that this method can be called only from the
filtermethod after an explicit check. By the way you can use method reference to get rid of warning:.filter(set::contains).