mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
IDEA-164016 Replace Optional.isPresent() checks with functional-style expressions fix produces non-compilable code
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
// "Replace Optional.isPresent() condition with functional style expression" "false"
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class Main {
|
||||
public void testOptional(Optional<String> str) {
|
||||
if (str.isPrese<caret>nt()) {
|
||||
str.get();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user