aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/model/CellTower.java8
-rw-r--r--src/main/java/org/traccar/model/Network.java8
-rw-r--r--src/main/java/org/traccar/model/WifiAccessPoint.java8
3 files changed, 18 insertions, 6 deletions
diff --git a/src/main/java/org/traccar/model/CellTower.java b/src/main/java/org/traccar/model/CellTower.java
index bebbb2432..355594c64 100644
--- a/src/main/java/org/traccar/model/CellTower.java
+++ b/src/main/java/org/traccar/model/CellTower.java
@@ -115,8 +115,12 @@ public class CellTower {
@Override
public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
CellTower cellTower = (CellTower) o;
return Objects.equals(radioType, cellTower.radioType)
&& Objects.equals(cellId, cellTower.cellId)
diff --git a/src/main/java/org/traccar/model/Network.java b/src/main/java/org/traccar/model/Network.java
index e565f4f59..b31c53c38 100644
--- a/src/main/java/org/traccar/model/Network.java
+++ b/src/main/java/org/traccar/model/Network.java
@@ -121,8 +121,12 @@ public class Network {
@Override
public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
Network network = (Network) o;
return Objects.equals(homeMobileCountryCode, network.homeMobileCountryCode)
&& Objects.equals(homeMobileNetworkCode, network.homeMobileNetworkCode)
diff --git a/src/main/java/org/traccar/model/WifiAccessPoint.java b/src/main/java/org/traccar/model/WifiAccessPoint.java
index fa7be8700..e28c1b935 100644
--- a/src/main/java/org/traccar/model/WifiAccessPoint.java
+++ b/src/main/java/org/traccar/model/WifiAccessPoint.java
@@ -67,8 +67,12 @@ public class WifiAccessPoint {
@Override
public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
WifiAccessPoint that = (WifiAccessPoint) o;
return Objects.equals(macAddress, that.macAddress)
&& Objects.equals(signalStrength, that.signalStrength)