mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-07 07:55:31 +07:00
Fixes IDEA-179273 Nullability check can be simplified when return type is Optional
7 lines
165 B
Java
7 lines
165 B
Java
// "Replace with Optional.ofNullable() chain" "false"
|
|
|
|
class Test {
|
|
String select(String foo, String bar) {
|
|
return foo =<caret>= null ? bar : bar.trim();
|
|
}
|
|
} |