mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-29 07:03:37 +07:00
- skip cast for variables - not extend parameters for cast GitOrigin-RevId: 6eb3a63d923fd1625c2c593afb65ce5762a1c0e4
15 lines
309 B
Java
15 lines
309 B
Java
// "Replace 'c' with pattern variable" "true-preview"
|
|
package pkg;
|
|
|
|
import java.util.*;
|
|
|
|
public class ComplexCast {
|
|
public static void is(Map<String, Integer> o) {
|
|
if (o instanceof AbstractMap<String, Integer> c) {
|
|
final Object o1 = c.get(null);
|
|
System.out.println(c.size());
|
|
}
|
|
}
|
|
}
|
|
|