diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-14 17:04:39 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-14 17:04:39 -0700 |
commit | 900601111466aa861db8ae77b71b95aec6c8c82e (patch) | |
tree | 3becbfeda62825e34f4d2cc4d25ac28c710361b0 /src/main/java/org | |
parent | 0bd4c493e9003449457e87ebad6c7016ded71c8d (diff) | |
download | trackermap-server-900601111466aa861db8ae77b71b95aec6c8c82e.tar.gz trackermap-server-900601111466aa861db8ae77b71b95aec6c8c82e.tar.bz2 trackermap-server-900601111466aa861db8ae77b71b95aec6c8c82e.zip |
Fix code style issues
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/traccar/model/CellTower.java | 8 | ||||
-rw-r--r-- | src/main/java/org/traccar/model/Network.java | 8 | ||||
-rw-r--r-- | src/main/java/org/traccar/model/WifiAccessPoint.java | 8 |
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) |