mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-20 03:20:56 +07:00
16 lines
343 B
Java
16 lines
343 B
Java
// "Replace with 'Double.hashCode()'" "true-preview"
|
|
|
|
class X {
|
|
private String s;
|
|
private double d;
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
int result;
|
|
long temp;
|
|
result = s != null ? s.hashCode() : 0;
|
|
temp = Double.doubleToLongBits(d);
|
|
result = 31 * result + (int)<caret>(temp ^ (temp >>> 32));
|
|
return result;
|
|
}
|
|
} |