Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Seems ok

Co-authored-by: lsiepel <leosiepel@gmail.com>
Signed-off-by: aviborg <andreas.viborg@gmail.com>
Signed-off-by: AndreasV <andreas.viborg@gmail.com>
  • Loading branch information
aviborg and lsiepel committed Sep 24, 2023
1 parent 1b9e2a9 commit 2def0ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,12 @@ public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
if (!(obj instanceof TellstickLocalDeviceDTO other)) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
TellstickLocalDeviceDTO other = (TellstickLocalDeviceDTO) obj;
return deviceId == other.deviceId;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,12 @@ public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
if (!(obj instanceof TellstickLocalSensorDTO other)) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
TellstickLocalSensorDTO other = (TellstickLocalSensorDTO) obj;
return deviceId == other.deviceId;
}

Expand Down

0 comments on commit 2def0ce

Please sign in to comment.