mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-30 08:41:59 +07:00
- skip cast for variables - not extend parameters for cast GitOrigin-RevId: 6eb3a63d923fd1625c2c593afb65ce5762a1c0e4
17 lines
285 B
Java
17 lines
285 B
Java
// "Replace 'a1' with pattern variable" "true"
|
|
package pkg;
|
|
|
|
import java.util.Objects;
|
|
|
|
class A<T extends CharSequence> {
|
|
private T t;
|
|
|
|
@Override
|
|
public final boolean equals(Object o) {
|
|
if (!(o instanceof A<?> a1)) return false;
|
|
|
|
return Objects.equals(t, a1.t);
|
|
}
|
|
}
|
|
|