mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-06-19 14:09:12 +07:00
OptionalIsPresentInspection: support parentheses
GitOrigin-RevId: a69adf66817d6e9e23f1777ddef64d8aec0d49c6
This commit is contained in:
committed by
intellij-monorepo-bot
parent
9a07910541
commit
5939a9e847
+1
-1
@@ -4,7 +4,7 @@ import java.util.*;
|
||||
|
||||
public class Main {
|
||||
public String testOptional(Optional<String> str) {
|
||||
if (str.isPre<caret>sent()) {
|
||||
if ((str).isPre<caret>sent()) {
|
||||
return str.get().trim();
|
||||
}
|
||||
return "";
|
||||
|
||||
Reference in New Issue
Block a user