mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-23 07:11:04 +07:00
33492f3827
GitOrigin-RevId: 2abb37a3ce54c4ca126d55b52b68fe44cbc9ccfc
14 lines
348 B
Java
14 lines
348 B
Java
// "Fix all ''Optional' can be replaced with sequence of 'if' statements' problems in file" "true"
|
|
|
|
import java.util.*;
|
|
|
|
class Test {
|
|
|
|
void statementWithIfPresentWithMultipleInstuctionsGeneratesCodeBlock(String s) {
|
|
Optional.<caret>ofNullable(s)
|
|
.ifPresent(s1 -> {
|
|
s1 = s1.trim();
|
|
System.out.println(s1);
|
|
});
|
|
}
|
|
} |