applied formatter

This commit is contained in:
Venkata Kiran Surapaneni 2019-01-28 01:55:39 -05:00
parent 474a3675f1
commit 435f198298
1 changed files with 51 additions and 52 deletions

View File

@ -64,8 +64,7 @@ public class Employee {
if (getClass() != obj.getClass()) if (getClass() != obj.getClass())
return false; return false;
Employee other = (Employee) obj; Employee other = (Employee) obj;
return id == other.id && Objects.equals(name, other.name) && Objects.equals(position, other.position) return id == other.id && Objects.equals(name, other.name) && Objects.equals(position, other.position) && Double.doubleToLongBits(salary) == Double.doubleToLongBits(other.salary);
&& Double.doubleToLongBits(salary) == Double.doubleToLongBits(other.salary);
} }
} }