mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
Fixes IDEA-296310 "Replace 'that' with pattern variable" generates uncompilable code for nested class GitOrigin-RevId: 0ac45ba97fdfe08e0d4a74b433b9770a82969406
19 lines
437 B
Java
19 lines
437 B
Java
// "Replace 'that' with pattern variable" "true"
|
|
class PatternInner<T> {
|
|
|
|
class Basis {
|
|
String key;
|
|
|
|
private PatternInner<T> outer() {
|
|
return PatternInner.this;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object obj) {
|
|
if (!(obj instanceof @SuppressWarnings("rawtypes")PatternInner.Basis that)) {
|
|
return false;
|
|
}
|
|
return this.outer() == that.outer() && this.key.equals(that.key);
|
|
}
|
|
}
|
|
} |