mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
14 lines
277 B
Java
14 lines
277 B
Java
// "Replace with 'Double.hashCode()'" "true-preview"
|
|
|
|
class X {
|
|
private String s;
|
|
private double d;
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
int result;
|
|
result = s != null ? s.hashCode() : 0;
|
|
result = 31 * result + Double.hashCode(d);
|
|
return result;
|
|
}
|
|
} |