mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 16:36:56 +07:00
1. Do not report error if non-final variable is reassigned 2. Report error in Java 15 if 'final' modifier is used 3. Allow specifying 'final' modifier on introduce variable 4. Support non-final variables in PatternVariableCanBeUsed inspection 5. Copy modifiers in PatternVariableCanBeUsed quick-fix GitOrigin-RevId: d7b82261a018c9a48bcdcf237ade0d8c08f5978d
7 lines
134 B
Java
7 lines
134 B
Java
// "Replace 's' with pattern variable" "true"
|
|
class X {
|
|
void test(Object obj) {
|
|
if (obj instanceof final String s) {
|
|
}
|
|
}
|
|
} |