mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
- skip cast for variables - not extend parameters for cast GitOrigin-RevId: 6eb3a63d923fd1625c2c593afb65ce5762a1c0e4
16 lines
363 B
Java
16 lines
363 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>) {
|
|
AbstractMap<?, ?> c<caret> = (AbstractMap<?, ?>) o;
|
|
final Object o1 = c.get(null);
|
|
System.out.println(c.size());
|
|
}
|
|
}
|
|
}
|
|
|