mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-06-05 12:03:58 +07:00
d98814d304
GitOrigin-RevId: afbeaa1f10b2266cd1401da83b71cf0bf6862824
11 lines
260 B
Java
11 lines
260 B
Java
// "Fix all 'Optional can be replaced with sequence of if statements' problems in file" "true"
|
|
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
|
|
String exceptionIsThrownIfNull(String in) {
|
|
return Optional.ofNullable<caret>(in).filter(s -> s.length() > 2).get();
|
|
}
|
|
|
|
} |