mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
Fixes IDEA-356148 Inlining method creates undesirable temporary variable GitOrigin-RevId: 34091cb3a6c6388b2086d92e8cd4b206b9250202
19 lines
346 B
Plaintext
19 lines
346 B
Plaintext
import java.util.*;
|
|
|
|
// IDEA-356148
|
|
public class Example {
|
|
|
|
public void example() {
|
|
|
|
final Map<String, Object> map = Map.of();
|
|
if (Objects.isNull((String) map.get("whatever"))) {
|
|
System.out.println("??");
|
|
}
|
|
|
|
final Object obj = "foo";
|
|
if (Objects.isNull((String) obj)) {
|
|
System.out.println("??");
|
|
}
|
|
}
|
|
|
|
} |