Commit Graph

2 Commits

Author SHA1 Message Date
Fabrice Tiercelin
1c9de6b4cf [java-inspections] IDEA-299573 Handle Optional.isEmpty() in "Non functional style Optional.isPresent() usage" inspection
PR#2100

Co-authored-by: Tagir Valeev <tagir.valeev@jetbrains.com>

GitOrigin-RevId: c0b8495f26bccf51c593deb6be927eb01c37d379
2022-08-10 18:04:05 +00:00
Tagir Valeev
588d978362 OptionalIsPresentInspection: do not warn if map() part can be null
If we cannot determine the non-nullity of map expression, then info
level is used. Fixes IDEA-172609 "Replace Optional.isPresent() checks
with functional-style expressions" is broken.
2017-05-31 17:48:57 +07:00