mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-04 04:09:09 +07:00
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();
|
|
}
|
|
|
|
} |