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

It's not possible to fix P13 when null is returning from external library #551

Open
g4s8 opened this issue Jul 21, 2020 · 1 comment
Open

Comments

@g4s8
Copy link

g4s8 commented Jul 21, 2020

We can't avoid nulls returning from Java classes or third-party dependency, e.g. String prop = System.getProperty("name") so we need to check it for nulls, so the pattern P13 doesn't make sense in this case. I'd keep only P16 (return null).

@lyriccoder
Copy link
Member

@yegor256 comment pls

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

2 participants