mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-07 15:35:40 +07:00
Fixes IDEA-348779 "Pattern variable can be used" inspection false positive GitOrigin-RevId: a1ac8fe39011db2127d8d6d627cfae913320995a
10 lines
277 B
Java
10 lines
277 B
Java
// "Replace 'number' with pattern variable" "false"
|
|
class X {
|
|
public static void main(String[] args) {
|
|
Object o1 = 1.0;
|
|
Object o2 = 2;
|
|
if (!(o1 instanceof Double)) return;
|
|
Number n<caret>umber = (Number) o2;
|
|
System.out.println("number = " + number);
|
|
}
|
|
} |