mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
move tests to community
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
class Test {
|
||||
float d;
|
||||
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
final Test test = (Test) o;
|
||||
|
||||
if (Float.compare(test.d, d) != 0) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return (d != +0.0f ? Float.floatToIntBits(d) : 0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user