mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-05 04:40:28 +07:00
12 lines
296 B
Java
12 lines
296 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) {
|
|
if (in == null || in.length() <= 2) throw new NoSuchElementException("No value present");
|
|
return in;
|
|
}
|
|
|
|
} |