Objects.requireNonNull shows "Result is ignored" warning after last IDEA update

已回答

Hi, is there a way to disable "Result is ignored" warning for not using result of method Objects.requireNonNull ???
This warning started showing up only after recent update of IDEA.

Thanks

1

Please share the code sample where the issue is reproduced. What JDK version do you use? Thank you. 

0
Avatar
Permanently deleted user

It`s everywhere where I`m using that check.
jdk1.8.0_151

For example:

@Override
@Transactional
public void update(long userId, @Nonnull UserAdministrationForm form) {
Objects.requireNonNull(form);

Person person = personService.findOneExpectingResult(userId);

update(person, form);
}
0

Thank you for the information provided. Issue is reproduced with 2019.1.1, but works correct with 2019.2 (planned to be released on May). Sorry for inconvenience.

0

请先登录再写评论。