mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-29 13:48:49 +07:00
GitOrigin-RevId: d6f5fb8b21e233edd636f5ee315e5e7b167f9b91
24 lines
424 B
Java
24 lines
424 B
Java
// "Convert record to class" "true-preview"
|
|
package com.example;
|
|
|
|
interface Runnable {}
|
|
|
|
final class X implements Runnable {
|
|
X() {
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object obj) {
|
|
return obj == this || obj != null && obj.getClass() == this.getClass();
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return 1;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "X[]";
|
|
}
|
|
} |