mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 07:20:55 +07:00
17 lines
343 B
Java
17 lines
343 B
Java
// "Fix all ''Optional' can be replaced with sequence of 'if' statements' problems in file" "true"
|
|
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
|
|
String returnOfOrElseValue(String in) {
|
|
if (in != null) return in;
|
|
return "foo";
|
|
}
|
|
|
|
void assignmentOfOrElseValue(String in) {
|
|
String out = "foo";
|
|
if (in != null) out = in;
|
|
}
|
|
|
|
} |