mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-04 04:09:09 +07:00
17 lines
396 B
Java
17 lines
396 B
Java
// "Fix all 'Optional can be replaced with sequence of if statements' problems in file" "true"
|
|
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
|
|
void simple(String in) {
|
|
if (in != null) System.out.println(in);
|
|
}
|
|
|
|
void lambdaIsNotSimplified(String in, String p1, String p2) {
|
|
if (in == null || p1 == null) throw new IllegalArgumentException();
|
|
String tmp = "foo";
|
|
tmp = "bar";
|
|
}
|
|
|
|
} |