mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-28 23:50:57 +07:00
PR#2100 Co-authored-by: Tagir Valeev <tagir.valeev@jetbrains.com> GitOrigin-RevId: c0b8495f26bccf51c593deb6be927eb01c37d379
14 lines
287 B
Java
14 lines
287 B
Java
// "Replace Optional presence condition with functional style expression" "false"
|
|
|
|
import java.util.Optional;
|
|
|
|
public class Main {
|
|
void assignVariable(Optional<Object> opt) {
|
|
String s;
|
|
if(opt.isPre<caret>sent()) {
|
|
s = opt.get().toString();
|
|
}
|
|
String s2 = s;
|
|
}
|
|
}
|